From 059695eeed9a494be5ed41bc6b9db265edc89280 Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Fri, 12 Jan 2018 17:54:50 +0300 Subject: [PATCH] HTTP: request body length was not passed to application. The bug has appeared in changeset 5817734dd9b9. --- src/nxt_http_request.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/nxt_http_request.c b/src/nxt_http_request.c index 89780454..270ebba7 100644 --- a/src/nxt_http_request.c +++ b/src/nxt_http_request.c @@ -221,6 +221,7 @@ nxt_http_app_request(nxt_task_t *task, void *obj, void *data) if (r->body != NULL) { ar->r.body.buf = r->body; ar->r.body.preread_size = r->content_length_n; + ar->r.header.parsed_content_length = r->content_length_n; } ar->r.body.done = 1;