aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_parse.c
diff options
context:
space:
mode:
authorMaxim Dounin <mdounin@mdounin.ru>2012-11-21 01:02:56 +0000
committerMaxim Dounin <mdounin@mdounin.ru>2012-11-21 01:02:56 +0000
commit6ddf23bdc4b6ab6995bb00428b76ba486d9b97c2 (patch)
treecc1f724d7a930ddc3d52078cffcab5ce6867883a /src/http/ngx_http_parse.c
parentdf74d881564b93c286790dbe6fc95c68967b53c5 (diff)
downloadnginx-6ddf23bdc4b6ab6995bb00428b76ba486d9b97c2.tar.gz
nginx-6ddf23bdc4b6ab6995bb00428b76ba486d9b97c2.zip
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.
Diffstat (limited to 'src/http/ngx_http_parse.c')
-rw-r--r--src/http/ngx_http_parse.c3
1 files changed, 3 insertions, 0 deletions
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: