Skip to content

Commit 90f04dd

Browse files
seankhliaogopherbot
authored andcommitted
net/http: clarify proxy selection from environment
For #40909 Fixes #54890 Change-Id: I00218bc1606eedb6194a3a7b81fd4d3f75325280 Reviewed-on: https://go-review.googlesource.com/c/go/+/428775 Reviewed-by: Damien Neil <[email protected]> Run-TryBot: Damien Neil <[email protected]> Reviewed-by: Michael Knyszek <[email protected]> TryBot-Result: Gopher Robot <[email protected]> Auto-Submit: Damien Neil <[email protected]>
1 parent 86f8b8d commit 90f04dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/net/http/transport.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,8 +422,8 @@ func (t *Transport) onceSetNextProtoDefaults() {
422422
// ProxyFromEnvironment returns the URL of the proxy to use for a
423423
// given request, as indicated by the environment variables
424424
// HTTP_PROXY, HTTPS_PROXY and NO_PROXY (or the lowercase versions
425-
// thereof). HTTPS_PROXY takes precedence over HTTP_PROXY for https
426-
// requests.
425+
// thereof). Requests use the proxy from the environment variable
426+
// matching their scheme, unless excluded by NO_PROXY.
427427
//
428428
// The environment values may be either a complete URL or a
429429
// "host[:port]", in which case the "http" scheme is assumed.

0 commit comments

Comments
 (0)