We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 10024ac commit 3dbd123Copy full SHA for 3dbd123
rpc/fasthttp/fasthttp_client.go
@@ -188,7 +188,7 @@ func (client *FastHTTPClient) sendAndReceive(
188
req.Header.Set("Connection", "close")
189
}
190
if client.compression {
191
- req.Header.Set("Content-Encoding", "gzip")
+ req.Header.Set("Accept-Encoding", "gzip")
192
193
resp := fasthttp.AcquireResponse()
194
err := client.Client.DoTimeout(req, resp, context.Timeout)
@@ -200,9 +200,7 @@ func (client *FastHTTPClient) sendAndReceive(
200
201
header = make(http.Header)
202
resp.Header.VisitAll(func(key, value []byte) {
203
- k := util.ByteString(key)
204
- v := util.ByteString(value)
205
- header.Add(k, v)
+ header.Add(util.ByteString(key), util.ByteString(value))
206
})
207
context.Set("httpHeader", header)
208
fasthttp.ReleaseRequest(req)
0 commit comments