Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/HttpClient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down
4 changes: 2 additions & 2 deletions src/HttpClient.h
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ class HttpClient : public Client
@return Length of the body, in bytes, or kNoContentLengthHeader if no
Content-Length header was returned by the server
*/
int contentLength();
long contentLength();

/** Returns if the response body is chunked
@return true if response body is chunked, false otherwise
Expand Down Expand Up @@ -372,7 +372,7 @@ class HttpClient : public Client
// Stores the status code for the response, once known
int iStatusCode;
// 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
int iBodyLengthConsumed;
// How far through a Content-Length header prefix we are
Expand Down