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:52:27 +02:00 committed by GitHub
parent 7f36561e0b
commit 208dfec4cf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -272,7 +272,7 @@ public:
@return Length of the body, in bytes, or kNoContentLengthHeader if no @return Length of the body, in bytes, or kNoContentLengthHeader if no
Content-Length header was returned by the server Content-Length header was returned by the server
*/ */
int contentLength(); long contentLength();
/** Returns if the response body is chunked /** Returns if the response body is chunked
@return true if response body is chunked, false otherwise @return true if response body is chunked, false otherwise
@ -372,7 +372,7 @@ protected:
// Stores the status code for the response, once known // Stores the status code for the response, once known
int iStatusCode; int iStatusCode;
// Stores the value of the Content-Length header, if present // Stores the value of the Content-Length header, if present
int iContentLength; long iContentLength;
// How many bytes of the response body have been read by the user // How many bytes of the response body have been read by the user
int iBodyLengthConsumed; int iBodyLengthConsumed;
// How far through a Content-Length header prefix we are // How far through a Content-Length header prefix we are