Skip to content

Commit

Permalink
Merge pull request #112 from arvin-a/tls-fix
Browse files Browse the repository at this point in the history
Adding tls renagotiate
  • Loading branch information
somashekhar committed Feb 3, 2021
2 parents 107472b + ebcb5a5 commit f5f0084
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion connector.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,8 @@ func getHTTPResponseError(resp *http.Response) error {
func (whr *WapiHttpRequestor) Init(cfg TransportConfig) {
tr := &http.Transport{
TLSClientConfig: &tls.Config{InsecureSkipVerify: !cfg.SslVerify,
RootCAs: cfg.certPool},
RootCAs: cfg.certPool,
Renegotiation: tls.RenegotiateOnceAsClient},
MaxIdleConnsPerHost: cfg.HttpPoolConnections,
}

Expand Down

0 comments on commit f5f0084

Please sign in to comment.