Skip to content

Commit

Permalink
Merge pull request #1526 from hashicorp/f-transport
Browse files Browse the repository at this point in the history
Builds the insecure SSL transport off the clean default transport.
  • Loading branch information
slackpad committed Dec 17, 2015
2 parents 01e3ad4 + ebff3fe commit 007d6f4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions api/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
}

Expand Down

0 comments on commit 007d6f4

Please sign in to comment.