Removing unnecessary cookie jar from thrift protocol initialization.

This commit is contained in:
Renan DelValle 2019-09-12 09:21:28 -07:00 committed by Renan DelValle
parent 5d75dcc15e
commit ecd59f7a8d

View file

@ -23,7 +23,6 @@ import (
"io/ioutil"
"log"
"net/http"
"net/http/cookiejar"
"os"
"path/filepath"
"sort"
@ -338,11 +337,6 @@ func GetCerts(certPath string) (*x509.CertPool, error) {
func defaultTTransport(url string, timeout time.Duration, config *clientConfig) (thrift.TTransport, error) {
var transport http.Transport
jar, err := cookiejar.New(nil)
if err != nil {
return nil, errors.Wrap(err, "error creating Cookie Jar")
}
if config != nil {
tlsConfig := &tls.Config{}
if config.InsecureSkipVerify {