From 6ddf23bdc4b6ab6995bb00428b76ba486d9b97c2 Mon Sep 17 00:00:00 2001 From: Maxim Dounin Date: Wed, 21 Nov 2012 01:02:56 +0000 Subject: [PATCH] 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. --- src/http/ngx_http_parse.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/http/ngx_http_parse.c b/src/http/ngx_http_parse.c index cbc412c74..a6ee74ecf 100644 --- 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: