Merge pull request #625 from databus23/b2d_proxy_env

respect proxy settings for b2d downloads
This commit is contained in:
Evan Hazlett 2015-03-18 12:02:17 -04:00
commit 46ea081f70
1 changed files with 3 additions and 1 deletions

View File

@ -22,7 +22,9 @@ func defaultTimeout(network, addr string) (net.Conn, error) {
func getClient() *http.Client {
transport := http.Transport{
Dial: defaultTimeout,
DisableKeepAlives: true,
Proxy: http.ProxyFromEnvironment,
Dial: defaultTimeout,
}
client := http.Client{