Builds the insecure SSL transport off the clean default transport.

This commit is contained in:
James Phillips 2015-12-17 12:15:18 -08:00
parent 01e3ad4a5a
commit ebff3fe0d0
1 changed files with 4 additions and 4 deletions

View File

@ -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
}
}