forked from mirrors/kore
make sure user-defined headers are set for > 500.
a commit done in 2018 prevented http responses with error codes > 500 to include any user-set headers, preventing a developer to include things like content-type etc. reported by Arun Babu via users@
This commit is contained in:
parent
53f042a5b4
commit
a10dfe03fe
|
@ -1947,7 +1947,7 @@ http_response_normal(struct http_request *req, struct connection *c,
|
|||
http_hsts_enable);
|
||||
}
|
||||
|
||||
if (req != NULL && req->status < HTTP_STATUS_INTERNAL_ERROR) {
|
||||
if (req != NULL) {
|
||||
TAILQ_FOREACH(ck, &(req->resp_cookies), list)
|
||||
http_write_response_cookie(ck);
|
||||
|
||||
|
|
Loading…
Reference in New Issue