From: Daniel Stenberg Date: Wed, 7 Sep 2005 10:51:37 +0000 (+0000) Subject: Thanks to Scott Davis' detailed reports, I found this premature detection X-Git-Tag: curl-7_15_0~71 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b9c8de598beefe782e2ba7d4f346feb8b549399e;p=thirdparty%2Fcurl.git Thanks to Scott Davis' detailed reports, I found this premature detection of the end of a chunked-encoded POST request. --- diff --git a/tests/server/sws.c b/tests/server/sws.c index bc1f484305..1e341cf0d0 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