From b9c8de598beefe782e2ba7d4f346feb8b549399e Mon Sep 17 00:00:00 2001
From: Daniel Stenberg <daniel@haxx.se>
Date: Wed, 7 Sep 2005 10:51:37 +0000
Subject: [PATCH] Thanks to Scott Davis' detailed reports, I found this
 premature detection of the end of a chunked-encoded POST request.

---
 tests/server/sws.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/server/sws.c b/tests/server/sws.c
index bc1f48430..1e341cf0d 100644
--- a/tests/server/sws.c
+++ b/tests/server/sws.c
@@ -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
-- 
2.40.0