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'))