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 09ed61187bca37b82eb42a1c6f83875b8d5e7ca1
parent 7ce742f1315b0e8d43a8b2d55f553fdbf4d68914
Author: Joris Vink <joris@coders.se>
Date:   Wed, 13 May 2015 09:16:06 +0200

Unfuck content-length changes.

We want a content-length unless its 204 or status < 200.

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

diff --git a/src/http.c b/src/http.c @@ -1266,7 +1266,7 @@ http_response_normal(struct http_request *req, struct connection *c, } } - if (status != 204 && 99 < status && status < 200) + if (status != 204 && status >= 200) kore_buf_appendf(header_buf, "content-length: %d\r\n", len); kore_buf_append(header_buf, "\r\n", 2);