From: Igor Sysoev Date: Mon, 19 Oct 2009 14:08:35 +0000 (+0000) Subject: prevent handling discarded body as a pipelined request X-Git-Tag: release-0.8.21~20 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=11e5d7f19016225457efaf805fa3551a2528e278;p=nginx.git prevent handling discarded body as a pipelined request --- diff --git a/src/http/ngx_http_request_body.c b/src/http/ngx_http_request_body.c index 3ee2ea477..d41e7959b 100644 --- a/src/http/ngx_http_request_body.c +++ b/src/http/ngx_http_request_body.c @@ -460,6 +460,7 @@ ngx_http_discard_request_body(ngx_http_request_t *r) if (size) { if (r->headers_in.content_length_n > size) { + r->header_in->pos += size; r->headers_in.content_length_n -= size; } else {