HTTP: request body length was not passed to application.
The bug has appeared in changeset 5817734dd9b9.
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user