kore

Kore is a web application platform for writing scalable, concurrent web based processes in C or Python.
Commits | Files | Refs | README | LICENSE | git clone https://git.kore.io/kore.git

commit a10dfe03fe0ff010c86624aa27436b7850ae371d
parent 53f042a5b4ea4b24760d2fd38ef07ef802b3a4ce
Author: Joris Vink <joris@coders.se>
Date:   Sun, 12 May 2019 20:53:27 +0200

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@

Diffstat:
src/http.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/http.c b/src/http.c @@ -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);