From 46a0bbc43b7379686f030f84611d23f80144685f Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Thu, 26 Jan 2017 22:41:29 +0000 Subject: [PATCH] version: use ProxyFromEnvironment Thanks to Benjamin Bytheway for pointing out its omission. Change-Id: Iee53e3d77fe575d1bbde7f3bc0c4693d293857a2 Reviewed-on: https://go-review.googlesource.com/35845 Reviewed-by: Chris Broadfoot --- version/version.go | 1 + 1 file changed, 1 insertion(+) diff --git a/version/version.go b/version/version.go index e6e6ca45..95874fa4 100644 --- a/version/version.go +++ b/version/version.go @@ -315,6 +315,7 @@ func copyFromURL(dstFile, srcURL string) (err error) { // (Not that GCS would try to compress it, though) DisableCompression: true, DisableKeepAlives: true, + Proxy: http.ProxyFromEnvironment, }}, } res, err := c.Get(srcURL)