From ebff3fe0d005325613e952a6c78cac5658d3d69c Mon Sep 17 00:00:00 2001 From: James Phillips Date: Thu, 17 Dec 2015 12:15:18 -0800 Subject: [PATCH] Builds the insecure SSL transport off the clean default transport. --- api/api.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/api/api.go b/api/api.go index 6736aecd2e8b..ad89dc50e695 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 } }