Skip to content

Commit

Permalink
Fix --proxy option parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
klzgrad committed Oct 16, 2024
1 parent db3214b commit 20c282e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/net/tools/naive/naive_config.cc
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ bool NaiveConfig::Parse(const base::Value::Dict& value) {
remove_auth.ClearPassword();
GURL url_no_auth = url.ReplaceComponents(remove_auth);
std::string proxy_uri = url_no_auth.GetWithEmptyPath().spec();
if (proxy_uri.back() == '/') {
if (!proxy_uri.empty() && proxy_uri.back() == '/') {
proxy_uri.pop_back();
}

Expand Down

0 comments on commit 20c282e

Please sign in to comment.