imgfmt: download using http proxy from env

This commit is contained in:
Henry Muru Paenga 2018-03-16 09:27:52 +13:00 committed by Henry Muru Paenga
parent f8a1359a60
commit a80ca551cf

View File

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