瀏覽代碼

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)