Skip to content

Commit b2f111b

Browse files
authored
Fix(adaptor): Fixed an issue where the adapter did not convert all (#1021)
values of the header successfully when converting the header.
1 parent 19fcd40 commit b2f111b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fasthttpadaptor/adaptor.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ func NewFastHTTPHandler(h http.Handler) fasthttp.RequestHandler {
6868
case "Transfer-Encoding":
6969
r.TransferEncoding = append(r.TransferEncoding, sv)
7070
default:
71-
hdr.Set(sk, sv)
71+
hdr.Add(sk, sv)
7272
}
7373
})
7474
r.Header = hdr
@@ -92,7 +92,7 @@ func NewFastHTTPHandler(h http.Handler) fasthttp.RequestHandler {
9292
}
9393

9494
for _, v := range vv {
95-
ctx.Response.Header.Set(k, v)
95+
ctx.Response.Header.Add(k, v)
9696
}
9797
}
9898
if !haveContentType {

0 commit comments

Comments
 (0)