Mercurial > hg > nginx-quic
comparison src/http/ngx_http_core_module.c @ 3251:ff7e1ec2c9a4 stable-0.7
merge r3079:
discard request body before returning 413 error,
this fixes custom 413 page redirection bug introduced in r1456
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Mon, 26 Oct 2009 17:40:07 +0000 |
parents | 2efa8d2fcde1 |
children | 616ff375a68f |
comparison
equal
deleted
inserted
replaced
3250:cfc35172c7fd | 3251:ff7e1ec2c9a4 |
---|---|
883 { | 883 { |
884 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, | 884 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, |
885 "client intended to send too large body: %O bytes", | 885 "client intended to send too large body: %O bytes", |
886 r->headers_in.content_length_n); | 886 r->headers_in.content_length_n); |
887 | 887 |
888 (void) ngx_http_discard_request_body(r); | |
888 ngx_http_finalize_request(r, NGX_HTTP_REQUEST_ENTITY_TOO_LARGE); | 889 ngx_http_finalize_request(r, NGX_HTTP_REQUEST_ENTITY_TOO_LARGE); |
889 return NGX_OK; | 890 return NGX_OK; |
890 } | 891 } |
891 | 892 |
892 if (rc == NGX_DONE) { | 893 if (rc == NGX_DONE) { |