diff --git a/api/api.go b/api/api.go index 6736aecd2..ad89dc50e 100644 --- a/api/api.go +++ b/api/api.go @@ -172,11 +172,11 @@ func DefaultConfig() *Config { } if !doVerify { - config.HttpClient.Transport = &http.Transport{ - TLSClientConfig: &tls.Config{ - InsecureSkipVerify: true, - }, + transport := cleanhttp.DefaultTransport() + transport.TLSClientConfig = &tls.Config{ + InsecureSkipVerify: true, } + config.HttpClient.Transport = transport } }