Skip to content

Commit

Permalink
respect proxy env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
danenania committed Mar 28, 2019
1 parent b40bc80 commit f1e14e7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions fetch/fetch.go
Original file line number Diff line number Diff line change
Expand Up @@ -151,6 +151,7 @@ func InitHttpClient(timeoutSeconds float64) {
Client = &http.Client{
Timeout: to,
Transport: &http.Transport{
Proxy: http.ProxyFromEnvironment,
Dial: (&net.Dialer{
Timeout: time.Duration(timeoutSeconds) * time.Second,
}).Dial,
Expand Down

0 comments on commit f1e14e7

Please sign in to comment.