aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_core_module.c
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2012-11-21 01:08:11 +0000
committerMaxim Dounin <mdounin@mdounin.ru>2012-11-21 01:08:11 +0000
commit5fc85439d0c6d55ff74ebba55d54d9c4e0bc6044 (patch)
tree63edb1b192543b176f856a3886e08e65d4205ab0 /src/http/ngx_http_core_module.c
parentd60b8d10f0d39510008d8f5017ee2bf259a488db (diff)
downloadnginx-5fc85439d0c6d55ff74ebba55d54d9c4e0bc6044.tar.gz
nginx-5fc85439d0c6d55ff74ebba55d54d9c4e0bc6044.zip
Request body: chunked transfer encoding support.
Diffstat (limited to 'src/http/ngx_http_core_module.c')
-rw-r--r--src/http/ngx_http_core_module.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index 826e4e5b5..faecaddc4 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -848,7 +848,8 @@ ngx_http_handler(ngx_http_request_t *r)
break;
}
- r->lingering_close = (r->headers_in.content_length_n > 0);
+ r->lingering_close = (r->headers_in.content_length_n > 0
+ || r->headers_in.chunked);
r->phase_handler = 0;
} else {