소스 검색

Honor environment proxy settings

Change-Id: Id38e05863ec014604f47afe94b0bfbf63b0924c9
Michel Lespinasse 8 년 전
부모
커밋
d87190945c
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)