changeset 1422:65dd057f71c7

cancel discarding body on EOF
author Igor Sysoev <igor@sysoev.ru>
date Mon, 27 Aug 2007 15:38:46 +0000
parents 24778e7450af
children 75e908236701
files src/http/ngx_http_request_body.c
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/http/ngx_http_request_body.c
+++ b/src/http/ngx_http_request_body.c
@@ -571,6 +571,10 @@ ngx_http_read_discarded_request_body(ngx
             return NGX_AGAIN;
         }
 
+        if (n == 0) {
+            return NGX_OK;
+        }
+
         r->headers_in.content_length_n -= n;
 
     } while (r->connection->read->ready);