Browse Source

Disable keep-alive for HTTP client

Frédéric Guillot 7 years ago
parent
commit
b5c317f971
1 changed files with 1 additions and 0 deletions
  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
 }