From a80ca551cf83e7c3911e68b22f9b05addb74f911 Mon Sep 17 00:00:00 2001 From: Henry Muru Paenga Date: Fri, 16 Mar 2018 09:27:52 +1300 Subject: [PATCH] imgfmt: download using http proxy from env --- ext/imagefmt/driver.go | 1 + 1 file changed, 1 insertion(+) diff --git a/ext/imagefmt/driver.go b/ext/imagefmt/driver.go index 6997e93b..1ed87a1e 100644 --- a/ext/imagefmt/driver.go +++ b/ext/imagefmt/driver.go @@ -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)