mirror of
https://github.com/arduino-libraries/ArduinoHttpClient.git
synced 2025-04-19 21:22:15 +03:00
ContentLength can go over 2 byte int
Converted int to long to allow for more then 65535 bytes in length
This commit is contained in:
parent
208dfec4cf
commit
0fac9f0033
@ -542,7 +542,7 @@ bool HttpClient::endOfHeadersReached()
|
||||
return (iState == eReadingBody || iState == eReadingChunkLength || iState == eReadingBodyChunk);
|
||||
};
|
||||
|
||||
int HttpClient::contentLength()
|
||||
long HttpClient::contentLength()
|
||||
{
|
||||
// skip the response headers, if they haven't been read already
|
||||
if (!endOfHeadersReached())
|
||||
|
Loading…
x
Reference in New Issue
Block a user