HTTP: request body length was not passed to application.

The bug has appeared in changeset 5817734dd9b9.
This commit is contained in:
Igor Sysoev
2018-01-12 17:54:50 +03:00
parent fa49d042a8
commit 059695eeed

View File

@@ -221,6 +221,7 @@ nxt_http_app_request(nxt_task_t *task, void *obj, void *data)
if (r->body != NULL) { if (r->body != NULL) {
ar->r.body.buf = r->body; ar->r.body.buf = r->body;
ar->r.body.preread_size = r->content_length_n; ar->r.body.preread_size = r->content_length_n;
ar->r.header.parsed_content_length = r->content_length_n;
} }
ar->r.body.done = 1; ar->r.body.done = 1;