Shiming Zhang
de3da57026
net/http/httpproxy: support non-ASCII characters in NO_PROXY
...
Change-Id: I4b3a97a2046fcc2619535a508c9d71ffa4ca75df
GitHub-Last-Rev: 5e2316523c
GitHub-Pull-Request: golang/net#105
Reviewed-on: https://go-review.googlesource.com/c/net/+/326269
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org >
Trust: Brad Fitzpatrick <bradfitz@golang.org >
Trust: Damien Neil <dneil@google.com >
Run-TryBot: Damien Neil <dneil@google.com >
TryBot-Result: Gopher Robot <gobot@golang.org >
2022-03-25 17:00:49 +00:00
Michael Fraenkel
7b1cca2348
http/httpproxy: match http scheme when selecting http_proxy
...
Protocol specific proxies must match based on scheme.
If the https proxy is no configured, and the proxy for a https URL is
requested, no proxy should be returned.
Updates golang/go#40909
Change-Id: I62dfcf95d819c634e8f2862e891877a4eb55fca7
Reviewed-on: https://go-review.googlesource.com/c/net/+/249440
Trust: Brad Fitzpatrick <bradfitz@golang.org >
Reviewed-by: Damien Neil <dneil@google.com >
2020-10-16 16:51:38 +00:00
Michael Fraenkel
c21de06aaf
http/httpproxy: support CIDR notation and ports with NO_PROXY
...
NO_PROXY includes support for CIDR, and notations can also
match exactly on port information if provided.
When specifying a port with IPv6, the address must be enclosed with
square brackets, [IPv6 address]:port.
Updates golang/go#16704 (fixes after vendor into std)
Change-Id: Ideb61a9ec60a6b1908f5a2c885cd6d9dd10c37cf
Reviewed-on: https://go-review.googlesource.com/115255
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org >
2018-07-09 17:18:25 +00:00
Brad Fitzpatrick
fc492d2e10
http/httpproxy: fix build on Go 1.8
...
Go 1.8 doesn't have t.Helper.
Fix the row of red on the dashboard.
Change-Id: I85d4bb9fe38e989dc3b6a4e99705599745b83cef
Reviewed-on: https://go-review.googlesource.com/80140
Run-TryBot: Brad Fitzpatrick <bradfitz@golang.org >
Reviewed-by: Tom Bergan <tombergan@google.com >
TryBot-Result: Gobot Gobot <gobot@golang.org >
2017-11-28 02:42:22 +00:00
Roger Peppe
c7086645de
http/httpproxy: new package
...
This factors out the HTTP proxy functionality from net/http,
with a view to vendoring it into net/http later.
See discussion in https://go-review.googlesource.com/c/go/+/68091
Change-Id: I8df8a92a13bca03504edd24b71a9a184f290b87d
Reviewed-on: https://go-review.googlesource.com/76910
Reviewed-by: roger peppe <rogpeppe@gmail.com >
2017-11-23 08:18:56 +00:00