imgfmt: download using http proxy from env

pull/530/head
Henry Muru Paenga 6 years ago committed by Henry Muru Paenga
parent f8a1359a60
commit a80ca551cf

@ -122,6 +122,7 @@ func Extract(format, path string, headers map[string]string, toExtract []string)
// Send the request and handle the response.
tr := &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: insecureTLS},
Proxy: http.ProxyFromEnvironment,
}
client := &http.Client{Transport: tr}
r, err := client.Do(request)

Loading…
Cancel
Save