ソースを参照

Merge pull request #84 from walken-google/master

Honor environment proxy settings
Raul Silvera 8 年 前
コミット
b72f64835d
共有1 個のファイルを変更した1 個の追加0 個の削除を含む
  1. 1
    0
      internal/driver/fetch.go

+ 1
- 0
internal/driver/fetch.go ファイルの表示

@@ -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)