do not NUL terminate the post data, for later.

This commit is contained in:
Joris Vink 2013-05-03 07:43:53 +02:00
parent 2401bd1a9f
commit 85aad24af5
2 changed files with 0 additions and 4 deletions

View File

@ -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);

View File

@ -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);