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 f7b0b7c7aca8a59fb13f24a2673f8781afbae27b
parent 0294212a3cc619caa600551b7437688eacdbe5d4
Author: Joris Vink <joris@coders.se>
Date:   Mon, 22 Feb 2016 14:08:21 +0100

Sometimes content_length wasn't properly updated.

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

diff --git a/src/http.c b/src/http.c @@ -716,6 +716,7 @@ http_header_recv(struct netbuf *nb) http_body_recv); c->rnb->extra = req; http_request_sleep(req); + req->content_length = bytes_left; } else if (bytes_left == 0) { req->flags |= HTTP_REQUEST_COMPLETE; req->flags &= ~HTTP_REQUEST_EXPECT_BODY;