mirror of
https://github.com/nginx/nginx.git
synced 2026-10-21 19:41:35 +00:00
cancel discarding body on EOF
This commit is contained in:
parent
da69848428
commit
fe8137af4b
1 changed files with 4 additions and 0 deletions
|
|
@ -571,6 +571,10 @@ ngx_http_read_discarded_request_body(ngx_http_request_t *r)
|
|||
return NGX_AGAIN;
|
||||
}
|
||||
|
||||
if (n == 0) {
|
||||
return NGX_OK;
|
||||
}
|
||||
|
||||
r->headers_in.content_length_n -= n;
|
||||
|
||||
} while (r->connection->read->ready);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue