fix incorrect http transport to work with proxies (#802)

Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
This commit is contained in:
Ramkumar Chinchani
2022-09-23 01:16:35 -07:00
committed by GitHub
parent f686ab6bf6
commit 944ae66844
+1 -1
View File
@@ -57,7 +57,7 @@ func createHTTPClient(verifyTLS bool, host string) *http.Client {
tlsConfig = &tls.Config{RootCAs: caCertPool, MinVersion: tls.VersionTLS12}
}
htr = &http.Transport{TLSClientConfig: tlsConfig}
htr.TLSClientConfig = tlsConfig
return &http.Client{
Timeout: httpTimeout,