From: Igor Sysoev Date: Mon, 27 Aug 2007 15:38:46 +0000 (+0000) Subject: cancel discarding body on EOF X-Git-Tag: release-0.6.9~6 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=fe8137af4b206599423eb937bb5b1bd6b2edab21;p=nginx.git cancel discarding body on EOF --- diff --git a/src/http/ngx_http_request_body.c b/src/http/ngx_http_request_body.c index 1ebb2e5f9..9c34b7c2e 100644 --- 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_http_request_t *r) return NGX_AGAIN; } + if (n == 0) { + return NGX_OK; + } + r->headers_in.content_length_n -= n; } while (r->connection->read->ready);