Removing unnecessary cookie jar from thrift protocol initialization.
This commit is contained in:
parent
5d75dcc15e
commit
ecd59f7a8d
1 changed files with 0 additions and 6 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue