diff src/http/ngx_http_request_body.c @ 1422:65dd057f71c7

cancel discarding body on EOF
author Igor Sysoev <igor@sysoev.ru>
date Mon, 27 Aug 2007 15:38:46 +0000
parents fdea12ffb24a
children 7f2adaebb81f
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);