From ebcb5a5a48a475a6c43c506a2bc8e71391fbaa0a Mon Sep 17 00:00:00 2001 From: Arvin Amirian Date: Mon, 28 Dec 2020 19:19:07 -0500 Subject: [PATCH] added renagotiate --- connector.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/connector.go b/connector.go index 0d8bdf7e..df10dfb8 100644 --- a/connector.go +++ b/connector.go @@ -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, }