# HG changeset patch # User Igor Sysoev # Date 1229960653 0 # Node ID 4876c3966fbd1687701ac121267986fdb88e2574 # Parent fa95fa9db5c4940950dd498fdae49fcd5c479303 send "100 Continue" for HTTP/1.1 only diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -862,7 +862,7 @@ ngx_http_core_find_config_phase(ngx_http return NGX_OK; } - if (r->headers_in.expect) { + if (r->headers_in.expect && r->http_version < NGX_HTTP_VERSION_11) { expect = ngx_http_core_send_continue(r); if (expect != NGX_OK) {