mirror of
https://github.com/nginx/nginx.git
synced 2024-12-01 03:17:17 +08: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