瀏覽代碼

Disable keep-alive for HTTP client

Frédéric Guillot 8 年之前
父節點
當前提交
b5c317f971
共有 1 個文件被更改,包括 1 次插入 和 0 次删除
  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
 }