HTTP: request body was not passed to application.

The bug has appeared in changeset 5817734dd9b9.
This commit is contained in:
Igor Sysoev
2018-01-11 09:49:35 +03:00
parent 470948a0d6
commit b09227fa5c

View File

@@ -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);