1
0
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:
Park0 2020-06-28 11:53:31 +02:00 committed by GitHub
parent 208dfec4cf
commit 0fac9f0033
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -542,7 +542,7 @@ bool HttpClient::endOfHeadersReached()
return (iState == eReadingBody || iState == eReadingChunkLength || iState == eReadingBodyChunk); return (iState == eReadingBody || iState == eReadingChunkLength || iState == eReadingBodyChunk);
}; };
int HttpClient::contentLength() long HttpClient::contentLength()
{ {
// skip the response headers, if they haven't been read already // skip the response headers, if they haven't been read already
if (!endOfHeadersReached()) if (!endOfHeadersReached())