diff options
author | Igor Sysoev <igor@sysoev.ru> | 2018-01-12 17:54:50 +0300 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2018-01-12 17:54:50 +0300 |
commit | 059695eeed9a494be5ed41bc6b9db265edc89280 (patch) | |
tree | 25b36d5dc242e6c3835f533e66dd1bfefa227cb5 /src | |
parent | fa49d042a83f23163d4ddf3ef44cccb6802f0520 (diff) | |
download | unit-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.c | 1 |
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; |