mirror of
https://github.com/nginx/nginx.git
synced 2025-01-19 01:42:58 +08:00
Request body: fixed discard of chunked request body.
Even if there is no preread data, make sure to always call ngx_http_discard_request_body_filter() in case of chunked request body to initialize r->headers_in.content_length_n for later use.
This commit is contained in:
parent
a94a101c79
commit
61feb90d74
@ -459,7 +459,7 @@ ngx_http_discard_request_body(ngx_http_request_t *r)
|
||||
|
||||
size = r->header_in->last - r->header_in->pos;
|
||||
|
||||
if (size) {
|
||||
if (size || r->headers_in.chunked) {
|
||||
rc = ngx_http_discard_request_body_filter(r, r->header_in);
|
||||
|
||||
if (rc != NGX_OK) {
|
||||
|
Loading…
Reference in New Issue
Block a user