]> Cypherpunks repositories - gostls13.git/commit
net/http: match curl and others' NO_PROXY wildcard handling
authorBrad Fitzpatrick <bradfitz@golang.org>
Sun, 23 Dec 2012 01:41:00 +0000 (17:41 -0800)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sun, 23 Dec 2012 01:41:00 +0000 (17:41 -0800)
commit82ae6434b3a95beb64f708078af5a525088d6ccc
treea2ff36ab08370eec47c82f4d33e1b5564d76f5b1
parent403f012534b7042160d26377a70b6624ccfd976c
net/http: match curl and others' NO_PROXY wildcard handling

NO_PROXY="example.com" should match "foo.example.com", just
the same as NO_PROXY=".example.com".  This is what curl and
Python do.

Fixes #4574

R=golang-dev, rsc
CC=golang-dev
https://golang.org/cl/7005049
src/pkg/net/http/proxy_test.go
src/pkg/net/http/transport.go
src/pkg/net/http/transport_test.go