Skip to content

Commit

Permalink
Builds the insecure SSL transport off the clean default transport.
Browse files Browse the repository at this point in the history
  • Loading branch information
James Phillips committed Dec 17, 2015
1 parent 01e3ad4 commit ebff3fe
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 ebff3fe

Please sign in to comment.