We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a13d012 commit ee8db7aCopy full SHA for ee8db7a
rpc/http_client.go
@@ -12,7 +12,7 @@
12
* *
13
* hprose http client for Go. *
14
15
- * LastModified: Nov 1, 2016 *
+ * LastModified: Nov 20, 2016 *
16
* Author: Ma Bingyao <[email protected]> *
17
18
\**********************************************************/
@@ -49,6 +49,7 @@ func NewHTTPClient(uri ...string) (client *HTTPClient) {
49
client.InitBaseClient()
50
client.limiter.InitLimiter()
51
client.httpClient.Transport = &client.Transport
52
+ client.Header = make(http.Header)
53
client.DisableCompression = true
54
client.DisableKeepAlives = false
55
client.MaxIdleConnsPerHost = 10
0 commit comments