mirror of https://github.com/golang/go.git
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 <dneil@google.com> Run-TryBot: Damien Neil <dneil@google.com> Reviewed-by: Michael Knyszek <mknyszek@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Damien Neil <dneil@google.com>
This commit is contained in:
parent
86f8b8d3f2
commit
90f04dd461
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Reference in New Issue