Descriptionnet/http: fix bug parsing http_proxy lacking a protocol
Per the curl man page, the http_proxy configuration can be
of the form:
[protocol://]<host>[:port]
And we had a test that <ip>:<port> worked, but if
the host began with a letter, url.Parse parsed the hostname
as the scheme instead, confusing ProxyFromEnvironment.
Patch Set 1 #Patch Set 2 : diff -r daabe25e67fe https://go.googlecode.com/hg/ #Patch Set 3 : diff -r daabe25e67fe https://go.googlecode.com/hg/ #Patch Set 4 : diff -r f7c125983d99 https://go.googlecode.com/hg/ #
MessagesTotal messages: 3
|