Browse Source

Merge pull request #84 from walken-google/master

Honor environment proxy settings
Raul Silvera 8 years ago
parent
commit
b72f64835d
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      internal/driver/fetch.go

+ 1
- 0
internal/driver/fetch.go View File

@@ -478,6 +478,7 @@ var httpGet = func(url string, timeout time.Duration) (*http.Response, error) {
478 478
 	client := &http.Client{
479 479
 		Transport: &http.Transport{
480 480
 			ResponseHeaderTimeout: timeout + 5*time.Second,
481
+			Proxy: http.ProxyFromEnvironment,
481 482
 		},
482 483
 	}
483 484
 	return client.Get(url)