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
7f36561e0b
commit
208dfec4cf
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user