We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86f8b8d commit 90f04ddCopy full SHA for 90f04dd
src/net/http/transport.go
@@ -422,8 +422,8 @@ func (t *Transport) onceSetNextProtoDefaults() {
422
// ProxyFromEnvironment returns the URL of the proxy to use for a
423
// given request, as indicated by the environment variables
424
// HTTP_PROXY, HTTPS_PROXY and NO_PROXY (or the lowercase versions
425
-// thereof). HTTPS_PROXY takes precedence over HTTP_PROXY for https
426
-// requests.
+// thereof). Requests use the proxy from the environment variable
+// matching their scheme, unless excluded by NO_PROXY.
427
//
428
// The environment values may be either a complete URL or a
429
// "host[:port]", in which case the "http" scheme is assumed.
0 commit comments