1
0
mirror of https://github.com/arduino-libraries/ArduinoHttpClient.git synced 2025-08-02 06:06:32 +03:00

Merge pull request #90 from Park0/master

ContentLength can go over 2 byte int
This commit is contained in:
Andrea Gilardoni
2024-03-22 09:34:37 +01:00
committed by GitHub
2 changed files with 3 additions and 3 deletions

View File

@ -543,7 +543,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())