# HG changeset patch # User Maxim Dounin # Date 1353459776 0 # Node ID 1c9d8b6523c0177074e5dca2a15d9065b0dbd0f8 # Parent 32030fa8cb142c5c4de90c8bdd3c71783261d6f2 Request body: adjust b->pos when chunked parsing done. This is a nop for the current code, though will allow to correctly parse pipelined requests. diff --git a/src/http/ngx_http_parse.c b/src/http/ngx_http_parse.c --- a/src/http/ngx_http_parse.c +++ b/src/http/ngx_http_parse.c @@ -2065,6 +2065,9 @@ data: done: + ctx->state = 0; + b->pos = pos + 1; + return NGX_DONE; invalid: