summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2018-01-12 17:54:50 +0300
committerIgor Sysoev <igor@sysoev.ru>2018-01-12 17:54:50 +0300
commit059695eeed9a494be5ed41bc6b9db265edc89280 (patch)
tree25b36d5dc242e6c3835f533e66dd1bfefa227cb5 /src
parentfa49d042a83f23163d4ddf3ef44cccb6802f0520 (diff)
downloadunit-059695eeed9a494be5ed41bc6b9db265edc89280.tar.gz
unit-059695eeed9a494be5ed41bc6b9db265edc89280.tar.bz2
HTTP: request body length was not passed to application.
The bug has appeared in changeset 5817734dd9b9.
Diffstat (limited to 'src')
-rw-r--r--src/nxt_http_request.c1
1 files changed, 1 insertions, 0 deletions
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;