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:
parent
fe46191445
commit
172049e0c3
@ -686,6 +686,7 @@ int HttpClient::readHeader()
|
|||||||
// Just in case we get multiple Content-Length headers, this
|
// Just in case we get multiple Content-Length headers, this
|
||||||
// will ensure we just get the value of the last one
|
// will ensure we just get the value of the last one
|
||||||
iContentLength = 0;
|
iContentLength = 0;
|
||||||
|
iBodyLengthConsumed = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else if ((iContentLengthPtr == kContentLengthPrefix) && (c == '\r'))
|
else if ((iContentLengthPtr == kContentLengthPrefix) && (c == '\r'))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user