mirror of
https://github.com/valyala/fasthttp.git
synced 2026-06-14 15:56:44 +03:00
Fix(adaptor): Fixed an issue where the adapter did not convert all (#1021)
values of the header successfully when converting the header.
This commit is contained in:
@@ -68,7 +68,7 @@ func NewFastHTTPHandler(h http.Handler) fasthttp.RequestHandler {
|
||||
case "Transfer-Encoding":
|
||||
r.TransferEncoding = append(r.TransferEncoding, sv)
|
||||
default:
|
||||
hdr.Set(sk, sv)
|
||||
hdr.Add(sk, sv)
|
||||
}
|
||||
})
|
||||
r.Header = hdr
|
||||
@@ -92,7 +92,7 @@ func NewFastHTTPHandler(h http.Handler) fasthttp.RequestHandler {
|
||||
}
|
||||
|
||||
for _, v := range vv {
|
||||
ctx.Response.Header.Set(k, v)
|
||||
ctx.Response.Header.Add(k, v)
|
||||
}
|
||||
}
|
||||
if !haveContentType {
|
||||
|
||||
Reference in New Issue
Block a user