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:
Joris Vink 2019-05-12 20:53:27 +02:00
parent 53f042a5b4
commit a10dfe03fe
1 changed files with 1 additions and 1 deletions

View File

@ -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);