Bring back automatic HTTP_PROXY setting from environment. #46

This commit is contained in:
Andrey Smirnov committed 2014-05-10 13:27:01 +04:00
1 parent bc7972ff68
commit 53adf39d89
3 files changed
+19 -1

No files matched your search

+6 -1
View File
@@ -51,7 +51,12 @@ func NewDownloader(threads int, progress aptly.Progress) aptly.Downloader {
unpause: make(chan bool),
threads: threads,
progress: progress,
client: &http.Client{Transport: &http.Transport{DisableCompression: true}},
client: &http.Client{
Transport: &http.Transport{
DisableCompression: true,
Proxy: http.ProxyFromEnvironment,
},
},
}
for i := 0; i < downloader.threads; i++ {