]> Cypherpunks repositories - gostls13.git/commit
net/http: fix test to check that requests to 'localhost' are not proxied
authorRajat Goel <rajat.goel2010@gmail.com>
Tue, 10 Feb 2015 01:12:12 +0000 (17:12 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Tue, 10 Feb 2015 03:01:30 +0000 (03:01 +0000)
commitd34ee29a52ac4c99cb2b88873b239cd2c8407c3b
treeb5438cf6cb8a02e8c8627b3a61bfbcc0c4678441
parenta1dbb9201d6cbffce4d7b1396561b0fb99e441f2
net/http: fix test to check that requests to 'localhost' are not proxied

I think the test was meant to test requests to 'localhost:80' instead
of 'localhost:80:80'. It passes even with 'localhost:80:80' because
net.SplitHostPort fails inside useProxy. Please comment if you want to
leave old 'localhost:80' is the list too to check old code path.

Change-Id: Ic4cd21901563449e3d4e2f4c8caf723f4ca15bac
u
Reviewed-on: https://go-review.googlesource.com/4293
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/net/http/proxy_test.go