Merge pull request #3631 from gburton1/addProxyCapability

Respect http proxy settings when using custom Transport
pull/3650/head
Taylor Thomas 7 years ago committed by GitHub
commit f19daa16c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save