Skip to content

Commit

Permalink
Merge pull request PelicanPlatform#115 from joereuss12/fix-common-tra…
Browse files Browse the repository at this point in the history
…nsport-tlsskipverify-branch

Fix bug with common transport TLSSkipVerify
  • Loading branch information
bbockelm authored Sep 7, 2023
2 parents b39030e + 4e4b664 commit cf1dff7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions handle_http.go
Original file line number Diff line number Diff line change
Expand Up @@ -474,10 +474,10 @@ func setupTransport() *http.Transport {
func getTransport() *http.Transport {
onceTransport.Do(func() {
transport = setupTransport()
if viper.GetBool("TLSSkipVerify") {
transport.TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
}
})
if viper.GetBool("TLSSkipVerify") {
transport.TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
}
return transport
}

Expand Down

0 comments on commit cf1dff7

Please sign in to comment.