mirror of
https://github.com/nginx/nginx.git
synced 2025-07-25 14:46:20 +08:00
prevent handling discarded body as a pipelined request
This commit is contained in:
parent
2495c4d50b
commit
11e5d7f190
@ -460,6 +460,7 @@ ngx_http_discard_request_body(ngx_http_request_t *r)
|
||||
|
||||
if (size) {
|
||||
if (r->headers_in.content_length_n > size) {
|
||||
r->header_in->pos += size;
|
||||
r->headers_in.content_length_n -= size;
|
||||
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user