[nginx] svn commit: r4927 - trunk/src/http

mdounin at mdounin.ru mdounin at mdounin.ru
Wed Nov 21 01:02:56 UTC 2012


Author: mdounin
Date: 2012-11-21 01:02:56 +0000 (Wed, 21 Nov 2012)
New Revision: 4927
URL: http://trac.nginx.org/nginx/changeset/4927/nginx

Log:
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.


Modified:
   trunk/src/http/ngx_http_parse.c

Modified: trunk/src/http/ngx_http_parse.c
===================================================================
--- trunk/src/http/ngx_http_parse.c	2012-11-21 00:59:16 UTC (rev 4926)
+++ trunk/src/http/ngx_http_parse.c	2012-11-21 01:02:56 UTC (rev 4927)
@@ -2065,6 +2065,9 @@
 
 done:
 
+    ctx->state = 0;
+    b->pos = pos + 1;
+
     return NGX_DONE;
 
 invalid:



More information about the nginx-devel mailing list