summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2008-12-22 15:44:13 +0000
committerIgor Sysoev <igor@sysoev.ru>2008-12-22 15:44:13 +0000
commit40e2269bfbc7d475f616b3e97931c012beef1240 (patch)
treea5a0b6b240d02e2d3f3f6c07dffb0fd827f90f69
parent2a7ce7b878ae9ef4ba617314d2fc349da1ec475d (diff)
downloadnginx-40e2269bfbc7d475f616b3e97931c012beef1240.tar.gz
nginx-40e2269bfbc7d475f616b3e97931c012beef1240.tar.bz2
send "100 Continue" for HTTP/1.1 only
-rw-r--r--src/http/ngx_http_core_module.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index 4f2b32578..8f25f1ab5 100644
--- 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_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) {