changeset 2419:4876c3966fbd

send "100 Continue" for HTTP/1.1 only
author Igor Sysoev <igor@sysoev.ru>
date Mon, 22 Dec 2008 15:44:13 +0000
parents fa95fa9db5c4
children 2820d548417d
files src/http/ngx_http_core_module.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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) {