Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(265)

Unified Diff: net/proxy/proxy_resolver_v8.cc

Issue 9383010: Strip brackets from IPv6 host literals before passing down to PAC script. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/proxy/proxy_resolver_v8.cc
diff --git a/net/proxy/proxy_resolver_v8.cc b/net/proxy/proxy_resolver_v8.cc
index 114bf0f90931743d10e196383b977beb9a3cd5c6..b3b19d6fff9e08928e7bcf61f539a9c85d346a5a 100644
--- a/net/proxy/proxy_resolver_v8.cc
+++ b/net/proxy/proxy_resolver_v8.cc
@@ -369,7 +369,7 @@ class ProxyResolverV8::Context {
v8::Handle<v8::Value> argv[] = {
ASCIIStringToV8String(query_url.spec()),
- ASCIIStringToV8String(query_url.host()),
+ ASCIIStringToV8String(query_url.HostNoBrackets()),
};
v8::TryCatch try_catch;

Powered by Google App Engine
This is Rietveld 408576698