瀏覽代碼

Hack the code so that both existing Go versions and current Go master format it the same (#358)

Margaret Nolan 7 年之前
父節點
當前提交
58b78aa5a1
共有 1 個檔案被更改,包括 2 行新增2 行删除
  1. 2
    2
      internal/driver/fetch.go

+ 2
- 2
internal/driver/fetch.go 查看文件

@@ -599,9 +599,9 @@ var httpGet = func(source string, timeout time.Duration) (*http.Response, error)
599 599
 
600 600
 	client := &http.Client{
601 601
 		Transport: &http.Transport{
602
+			Proxy:                 http.ProxyFromEnvironment,
603
+			TLSClientConfig:       tlsConfig,
602 604
 			ResponseHeaderTimeout: timeout + 5*time.Second,
603
-			Proxy:           http.ProxyFromEnvironment,
604
-			TLSClientConfig: tlsConfig,
605 605
 		},
606 606
 	}
607 607
 	return client.Get(source)