mirror of
https://github.com/nginx/nginx.git
synced 2026-08-28 04:39:05 +00:00
do not discard body if it has been already read
This commit is contained in:
parent
31d6f9590a
commit
cc4078f470
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue