mirror of
https://github.com/nginx/nginx.git
synced 2024-12-20 06:03:31 -06:00
do not discard body if it has been already read
This commit is contained in:
parent
31d6f9590a
commit
cc4078f470
@ -442,7 +442,7 @@ ngx_http_discard_request_body(ngx_http_request_t *r)
|
||||
ngx_del_timer(rev);
|
||||
}
|
||||
|
||||
if (r->headers_in.content_length_n <= 0) {
|
||||
if (r->headers_in.content_length_n <= 0 || r->request_body) {
|
||||
return NGX_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user