Bring back automatic HTTP_PROXY setting from environment. #46

This commit is contained in:
Andrey Smirnov
2014-05-10 13:27:01 +04:00
parent bc7972ff68
commit 53adf39d89
3 changed files with 19 additions and 1 deletions
+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++ {