Merge pull request #3631 from gburton1/addProxyCapability

Respect http proxy settings when using custom Transport
pull/4207/head^2
Taylor Thomas 8 years ago committed by GitHub
commit c7784a0572

@ -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