Skip to content

Commit 007d6f4

Browse files
committed
Merge pull request #1526 from hashicorp/f-transport
Builds the insecure SSL transport off the clean default transport.
2 parents 01e3ad4 + ebff3fe commit 007d6f4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

api/api.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -172,11 +172,11 @@ func DefaultConfig() *Config {
172172
}
173173

174174
if !doVerify {
175-
config.HttpClient.Transport = &http.Transport{
176-
TLSClientConfig: &tls.Config{
177-
InsecureSkipVerify: true,
178-
},
175+
transport := cleanhttp.DefaultTransport()
176+
transport.TLSClientConfig = &tls.Config{
177+
InsecureSkipVerify: true,
179178
}
179+
config.HttpClient.Transport = transport
180180
}
181181
}
182182

0 commit comments

Comments
 (0)