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 <cbro@golang.org>
This commit is contained in:
Brad Fitzpatrick 2017-01-26 22:41:29 +00:00
Родитель bb89867699
Коммит 46a0bbc43b
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

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