From 0608878fabfd72b3aa8b4cc4ea5efb1305c85ded Mon Sep 17 00:00:00 2001
From: Renan DelValle <commit@ridv.xyz>
Date: Thu, 12 Sep 2019 09:21:28 -0700
Subject: [PATCH] Removing unnecessary cookie jar from thrift protocol
 initialization.

---
 realis.go | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/realis.go b/realis.go
index 32c4d5f..18be711 100644
--- a/realis.go
+++ b/realis.go
@@ -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 {