From b09227fa5c5f4b509d9e57da67b0ee79780a9877 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 11 Jan 2018 09:49:35 +0300 Subject: [PATCH] HTTP: request body was not passed to application. The bug has appeared in changeset 5817734dd9b9. --- src/nxt_http_request.c | 5 +++++ 1 file changed, 5 insertions(+) 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);