]> git.kaiwu.me - nginx.git/commitdiff
send "100 Continue" for HTTP/1.1 only
authorIgor Sysoev <igor@sysoev.ru>
Mon, 22 Dec 2008 15:44:13 +0000 (15:44 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 22 Dec 2008 15:44:13 +0000 (15:44 +0000)
src/http/ngx_http_core_module.c

index 4f2b32578b475b17a340b5eb5da9e8457f35aba7..8f25f1ab5c175a6b94f990f3a12461943efd1430 100644 (file)
@@ -862,7 +862,7 @@ ngx_http_core_find_config_phase(ngx_http_request_t *r,
         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) {