changeset 4926:1c9d8b6523c0

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.
author Maxim Dounin <mdounin@mdounin.ru>
date Wed, 21 Nov 2012 01:02:56 +0000
parents 32030fa8cb14
children 93294110728f
files src/http/ngx_http_parse.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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: