comparison src/http/ngx_http_core_module.c @ 5049:c43fa53c1d8f stable-1.2

Merge of r4974: avoid sending "100 Continue" on 413. Avoid sending "100 Continue" on 413 Request Entity Too Large. Patch by Igor Sysoev.
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 11 Feb 2013 12:35:49 +0000
parents 05beaa2d87b3
children
comparison
equal deleted inserted replaced
5048:2f0862333985 5049:c43fa53c1d8f
991 { 991 {
992 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0, 992 ngx_log_error(NGX_LOG_ERR, r->connection->log, 0,
993 "client intended to send too large body: %O bytes", 993 "client intended to send too large body: %O bytes",
994 r->headers_in.content_length_n); 994 r->headers_in.content_length_n);
995 995
996 r->expect_tested = 1;
996 (void) ngx_http_discard_request_body(r); 997 (void) ngx_http_discard_request_body(r);
997 ngx_http_finalize_request(r, NGX_HTTP_REQUEST_ENTITY_TOO_LARGE); 998 ngx_http_finalize_request(r, NGX_HTTP_REQUEST_ENTITY_TOO_LARGE);
998 return NGX_OK; 999 return NGX_OK;
999 } 1000 }
1000 1001