@@ -58,6 +58,8 @@ func newRequest(method, uri string, body io.Reader, opt RequestOption) (res *htt
pool := x509.NewCertPool()
t.TLSClientConfig = &tls.Config{InsecureSkipVerify: true, Certificates: []tls.Certificate{cert}, RootCAs: pool}
}
+ } else {
+ t.TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
c := &http.Client{Transport: t}
var req *http.Request