mirror of
https://github.com/project-zot/zot.git
synced 2026-06-16 20:38:08 +08:00
fix incorrect http transport to work with proxies (#802)
Signed-off-by: Ramkumar Chinchani <rchincha@cisco.com>
This commit is contained in:
committed by
GitHub
parent
f686ab6bf6
commit
944ae66844
+1
-1
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user