Преглед изворни кода

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)