aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--fasthttpadaptor/adaptor.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/fasthttpadaptor/adaptor.go b/fasthttpadaptor/adaptor.go
index 54d222e..e7a4ffe 100644
--- a/fasthttpadaptor/adaptor.go
+++ b/fasthttpadaptor/adaptor.go
@@ -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 {