Thanks to Scott Davis' detailed reports, I found this premature detection
authorDaniel Stenberg <daniel@haxx.se>
Wed, 7 Sep 2005 10:51:37 +0000 (10:51 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 7 Sep 2005 10:51:37 +0000 (10:51 +0000)
of the end of a chunked-encoded POST request.

tests/server/sws.c

index bc1f484..1e341cf 100644 (file)
@@ -338,7 +338,7 @@ int ProcessRequest(struct httprequest *req)
     }
 
     if(chunked) {
-      if(strstr(req->reqbuf, "\r\n0\r\n"))
+      if(strstr(req->reqbuf, "\r\n0\r\n\r\n"))
         /* end of chunks reached */
         return 1; /* done */
       else