1
0
mirror of https://github.com/arduino-libraries/ArduinoHttpClient.git synced 2025-04-19 21:22:15 +03:00

Also set iBodyLengthConsumed to zero when parsing

This commit is contained in:
Sandeep Mistry 2016-08-12 17:00:56 -04:00
parent fe46191445
commit 172049e0c3

View File

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