Procházet zdrojové kódy

fix secure skip verify

ls před 2 roky
rodič
revize
55bcf215dc
1 změnil soubory, kde provedl 2 přidání a 0 odebrání
  1. 2 0
      xhttp/client.go

+ 2 - 0
xhttp/client.go

@@ -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