]> git.kaiwu.me - nginx.git/commitdiff
Request body: adjust b->pos when chunked parsing done.
authorMaxim Dounin <mdounin@mdounin.ru>
Wed, 21 Nov 2012 01:02:56 +0000 (01:02 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Wed, 21 Nov 2012 01:02:56 +0000 (01:02 +0000)
This is a nop for the current code, though will allow to correctly parse
pipelined requests.

src/http/ngx_http_parse.c

index cbc412c74c32ee077102ad3e06d11f42af799394..a6ee74ecf01283a2dfd8d475968ead1f6c13d36e 100644 (file)
@@ -2065,6 +2065,9 @@ data:
 
 done:
 
+    ctx->state = 0;
+    b->pos = pos + 1;
+
     return NGX_DONE;
 
 invalid: