mirror of
https://github.com/nginx/nginx.git
synced 2024-11-29 12:14:27 -06:00
cancel discarding body on EOF
This commit is contained in:
parent
da69848428
commit
fe8137af4b
@ -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…
Reference in New Issue
Block a user