Jerry %!s(int64=6) %!d(string=hai) anos
pai
achega
3fce7e4e8a
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      http_client.go

+ 1 - 1
http_client.go

@@ -48,7 +48,7 @@ type Client struct {
 // NewHttpClient , default tls.Config{InsecureSkipVerify: true}
 func NewHttpClient() (client *Client) {
 	c := new(Client)
-	c.HttpClient = new(http.Client)
+	c.HttpClient = &http.Client{}
 	c.Transport = &http.Transport{}
 	c.Transport.TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
 	c.RequestType = TypeUrlencoded