Merge pull request #3631 from gburton1/addProxyCapability

Respect http proxy settings when using custom Transport
This commit is contained in:
Taylor Thomas 2018-03-09 16:28:58 -08:00 committed by GitHub
commit f19daa16c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -76,6 +76,7 @@ func newHTTPGetter(URL, CertFile, KeyFile, CAFile string) (Getter, error) {
client.client = &http.Client{
Transport: &http.Transport{
TLSClientConfig: tlsConf,
Proxy: http.ProxyFromEnvironment,
},
}
} else {