From 85aad24af57be8ac67cf14e126bf8a8436f37ec9 Mon Sep 17 00:00:00 2001 From: Joris Vink Date: Fri, 3 May 2013 07:43:53 +0200 Subject: [PATCH] do not NUL terminate the post data, for later. --- src/http.c | 1 - src/spdy.c | 3 --- 2 files changed, 4 deletions(-) diff --git a/src/http.c b/src/http.c index 2e370d4..f5d704a 100644 --- 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 index 0c39fc7..be442d6 100644 --- 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);