changeset 3212:e67d000b5337

prevent handling discarded body as a pipelined request
author Igor Sysoev <igor@sysoev.ru>
date Mon, 19 Oct 2009 14:08:35 +0000
parents 3ea03c1fe050
children 7fc06314c684
files src/http/ngx_http_request_body.c
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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_r
 
     if (size) {
         if (r->headers_in.content_length_n > size) {
+            r->header_in->pos += size;
             r->headers_in.content_length_n -= size;
 
         } else {