mirror of
https://github.com/nginx/nginx.git
synced 2026-05-13 09:36:42 +00:00
Merge of r4974: avoid sending "100 Continue" on 413.
Avoid sending "100 Continue" on 413 Request Entity Too Large. Patch by Igor Sysoev.
This commit is contained in:
parent
5667debba4
commit
bbbadc2be2
1 changed files with 1 additions and 0 deletions
|
|
@ -993,6 +993,7 @@ ngx_http_core_find_config_phase(ngx_http_request_t *r,
|
|||
"client intended to send too large body: %O bytes",
|
||||
r->headers_in.content_length_n);
|
||||
|
||||
r->expect_tested = 1;
|
||||
(void) ngx_http_discard_request_body(r);
|
||||
ngx_http_finalize_request(r, NGX_HTTP_REQUEST_ENTITY_TOO_LARGE);
|
||||
return NGX_OK;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue