mirror of
https://github.com/jorisvink/kore
synced 2025-03-09 20:49:01 -04:00
do not NUL terminate the post data, for later.
This commit is contained in:
parent
2401bd1a9f
commit
85aad24af5
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user