mirror of
https://github.com/fnproject/fn.git
synced 2022-10-28 21:29:17 +03:00
ensure that certain request headers may not be overwritten / added to
This commit is contained in:
@@ -42,7 +42,7 @@ func (h *HTTPProtocol) Dispatch(w io.Writer, req *http.Request) error {
|
||||
}
|
||||
|
||||
for k, v := range res.Header {
|
||||
rw.Header()[k] = v
|
||||
rw.Header().Add(k, v) // on top of any specified on the route
|
||||
}
|
||||
rw.WriteHeader(res.StatusCode)
|
||||
// TODO should we TCP_CORK ?
|
||||
|
||||
Reference in New Issue
Block a user