summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_http_request.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/nxt_http_request.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/nxt_http_request.c b/src/nxt_http_request.c
index 808cd75b..89780454 100644
--- a/src/nxt_http_request.c
+++ b/src/nxt_http_request.c
@@ -218,6 +218,11 @@ nxt_http_app_request(nxt_task_t *task, void *obj, void *data)
ar->r.header.cookie.start = r->cookie->value;
}
+ if (r->body != NULL) {
+ ar->r.body.buf = r->body;
+ ar->r.body.preread_size = r->content_length_n;
+ }
+
ar->r.body.done = 1;
ret = nxt_http_parse_request_init(&ar->resp_parser, r->mem_pool);