Selaa lähdekoodia

fix DisableKeepAlives = true

Jerry 6 vuotta sitten
vanhempi
commit
d2c5826a43
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  1. 1 0
      http_client.go

+ 1 - 0
http_client.go

@@ -52,6 +52,7 @@ func NewHttpClient() (client *Client) {
 	c.HttpClient = &http.Client{}
 	c.Transport = &http.Transport{}
 	c.Transport.TLSClientConfig = &tls.Config{InsecureSkipVerify: true}
+	c.Transport.DisableKeepAlives = true
 	c.RequestType = TypeUrlencoded
 	c.UnmarshalType = TypeJSON
 	c.Errors = make([]error, 0)