aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/net/http/transport.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/net/http/transport.go b/src/net/http/transport.go
index e470a6c080..1854daba8a 100644
--- a/src/net/http/transport.go
+++ b/src/net/http/transport.go
@@ -422,8 +422,8 @@ func (t *Transport) onceSetNextProtoDefaults() {
// ProxyFromEnvironment returns the URL of the proxy to use for a
// given request, as indicated by the environment variables
// HTTP_PROXY, HTTPS_PROXY and NO_PROXY (or the lowercase versions
-// thereof). HTTPS_PROXY takes precedence over HTTP_PROXY for https
-// requests.
+// thereof). Requests use the proxy from the environment variable
+// matching their scheme, unless excluded by NO_PROXY.
//
// The environment values may be either a complete URL or a
// "host[:port]", in which case the "http" scheme is assumed.