commit | fe8137af4b206599423eb937bb5b1bd6b2edab21 | [log] [tgz] |
---|---|---|
author | Igor Sysoev <igor@sysoev.ru> | Mon Aug 27 15:38:46 2007 +0000 |
committer | Igor Sysoev <igor@sysoev.ru> | Mon Aug 27 15:38:46 2007 +0000 |
tree | f7650b5ceafcb819d1e6949b9d22ef8a3fa850ff | |
parent | da69848428c5c5e22bb8e4be0de70b50f618aefa [diff] [blame] |
cancel discarding body on EOF
diff --git a/src/http/ngx_http_request_body.c b/src/http/ngx_http_request_body.c index 1ebb2e5..9c34b7c 100644 --- a/src/http/ngx_http_request_body.c +++ b/src/http/ngx_http_request_body.c
@@ -571,6 +571,10 @@ return NGX_AGAIN; } + if (n == 0) { + return NGX_OK; + } + r->headers_in.content_length_n -= n; } while (r->connection->read->ready);