]> git.kaiwu.me - nginx.git/commitdiff
prevent handling discarded body as a pipelined request
authorIgor Sysoev <igor@sysoev.ru>
Mon, 19 Oct 2009 14:08:35 +0000 (14:08 +0000)
committerIgor Sysoev <igor@sysoev.ru>
Mon, 19 Oct 2009 14:08:35 +0000 (14:08 +0000)
src/http/ngx_http_request_body.c

index 3ee2ea4776f2f1b4a1f704c37c71e7460412023a..d41e7959beee9be71d8d5227ce63f9d668994cb2 100644 (file)
@@ -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 {