diff options
author | Igor Sysoev <igor@sysoev.ru> | 2009-10-19 14:08:35 +0000 |
---|---|---|
committer | Igor Sysoev <igor@sysoev.ru> | 2009-10-19 14:08:35 +0000 |
commit | 11e5d7f19016225457efaf805fa3551a2528e278 (patch) | |
tree | b6c5737106b24cf735d5a4ad872ba1dfb32c41d8 /src | |
parent | 2495c4d50bbdaf1410808fd230ecca820c463934 (diff) | |
download | nginx-11e5d7f19016225457efaf805fa3551a2528e278.tar.gz nginx-11e5d7f19016225457efaf805fa3551a2528e278.zip |
prevent handling discarded body as a pipelined request
Diffstat (limited to 'src')
-rw-r--r-- | src/http/ngx_http_request_body.c | 1 |
1 files changed, 1 insertions, 0 deletions
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 { |