From 172049e0c3c8d29799c5faec5c473025109c68de Mon Sep 17 00:00:00 2001 From: Sandeep Mistry Date: Fri, 12 Aug 2016 17:00:56 -0400 Subject: [PATCH] Also set iBodyLengthConsumed to zero when parsing --- src/HttpClient.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/HttpClient.cpp b/src/HttpClient.cpp index d640bd1..e66d488 100644 --- a/src/HttpClient.cpp +++ b/src/HttpClient.cpp @@ -686,6 +686,7 @@ int HttpClient::readHeader() // Just in case we get multiple Content-Length headers, this // will ensure we just get the value of the last one iContentLength = 0; + iBodyLengthConsumed = 0; } } else if ((iContentLengthPtr == kContentLengthPrefix) && (c == '\r'))