New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
net/http: document that ProxyFromEnvironment special-cases localhost #7256
Labels
Milestone
Comments
I don't remember why we do that. (in func useProxy) If we have to keep it, it at least needs to be documented. Could you dig through the source history and figure out when it was added and why? Also, do other tools do something like this? Labels changed: added release-go1.3, repo-main. Status changed to Accepted. |
Maybe we have it because "localhost" will likely mean something different That's a good point. However a HTTP proxy doesn't have to be on a remote machine, like the use case here with a debugging proxy. If a person wants to explicitly disable hitting the proxy for "localhost" or 127.0.0.1, then can choose to do so by adding them to NO_PROXY. https://code.google.com/p/go/source/browse/src/pkg/net/http/transport.go?name=go1.2#553 |
@bradfitz: https://golang.org/issue/1589 There existed NO_PROXY support at the time of adding this. |
CL https://golang.org/cl/97590043 mentions this issue. |
This issue was closed by revision f0bdee1. Status changed to Fixed. |
This issue was closed.
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
by mislav.marohnic:
The text was updated successfully, but these errors were encountered: