comparison src/http/ngx_http_core_module.c @ 2435:821497e016b6

do not send "100 Continue" for subrequests
author Igor Sysoev <igor@sysoev.ru>
date Fri, 26 Dec 2008 06:21:23 +0000
parents 46d11bff21ef
children 26d9d4a41e91
comparison
equal deleted inserted replaced
2434:f80631ca01c6 2435:821497e016b6
860 860
861 ngx_http_finalize_request(r, NGX_HTTP_REQUEST_ENTITY_TOO_LARGE); 861 ngx_http_finalize_request(r, NGX_HTTP_REQUEST_ENTITY_TOO_LARGE);
862 return NGX_OK; 862 return NGX_OK;
863 } 863 }
864 864
865 if (r->headers_in.expect && r->http_version > NGX_HTTP_VERSION_10) { 865 if (r->headers_in.expect
866 && r == r->main
867 && r->http_version > NGX_HTTP_VERSION_10)
868 {
866 expect = ngx_http_core_send_continue(r); 869 expect = ngx_http_core_send_continue(r);
867 870
868 if (expect != NGX_OK) { 871 if (expect != NGX_OK) {
869 ngx_http_finalize_request(r, expect); 872 ngx_http_finalize_request(r, expect);
870 return NGX_OK; 873 return NGX_OK;