You've already forked ArduinoHttpClient
mirror of
https://github.com/arduino-libraries/ArduinoHttpClient.git
synced 2025-07-31 18:44:22 +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:
@ -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())
|
||||
|
Reference in New Issue
Block a user