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 85aad24af57be8ac67cf14e126bf8a8436f37ec9
parent 2401bd1a9f779cfe6737b2e343636ce9c7215c1c
Author: Joris Vink <joris@coders.se>
Date:   Fri,  3 May 2013 07:43:53 +0200

do not NUL terminate the post data, for later.

Diffstat:
src/http.c | 1-
src/spdy.c | 3---
2 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/src/http.c b/src/http.c @@ -402,7 +402,6 @@ http_post_data_recv(struct netbuf *nb) struct http_request *req = (struct http_request *)nb->extra; kore_buf_append(req->post_data, nb->buf, nb->offset); - kore_log("%s", req->post_data->data); req->flags |= HTTP_REQUEST_COMPLETE; return (KORE_RESULT_OK); diff --git a/src/spdy.c b/src/spdy.c @@ -489,11 +489,8 @@ spdy_data_frame_recv(struct netbuf *nb) data.length); if (data.flags & FLAG_FIN) { - kore_buf_append(req->post_data, (u_int8_t *)"\0", 1); - s->flags |= FLAG_FIN; req->flags |= HTTP_REQUEST_COMPLETE; - kore_log("%s", req->post_data->data); } return (KORE_RESULT_OK);