Explorar o código

Disable keep-alive for HTTP client

Frédéric Guillot %!s(int64=8) %!d(string=hai) anos
pai
achega
b5c317f971
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      http/client/client.go

+ 1 - 0
http/client/client.go

@@ -224,6 +224,7 @@ func (c *Client) buildHeaders() http.Header {
 		headers.Add("Authorization", c.authorizationHeader)
 	}
 
+	headers.Add("Connection", "close")
 	return headers
 }