changeset 1582:227152b66458

do not discard body if it has been already read
author Igor Sysoev <igor@sysoev.ru>
date Thu, 18 Oct 2007 11:29:15 +0000
parents 81774dc3db28
children 45cbc1aa8652
files src/http/ngx_http_request_body.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/ngx_http_request_body.c
+++ b/src/http/ngx_http_request_body.c
@@ -442,7 +442,7 @@ ngx_http_discard_request_body(ngx_http_r
         ngx_del_timer(rev);
     }
 
-    if (r->headers_in.content_length_n <= 0) {
+    if (r->headers_in.content_length_n <= 0 || r->request_body) {
         return NGX_OK;
     }