File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -543,7 +543,7 @@ bool HttpClient::endOfHeadersReached()
543
543
return (iState == eReadingBody || iState == eReadingChunkLength || iState == eReadingBodyChunk);
544
544
};
545
545
546
- int HttpClient::contentLength ()
546
+ long HttpClient::contentLength ()
547
547
{
548
548
// skip the response headers, if they haven't been read already
549
549
if (!endOfHeadersReached ())
Original file line number Diff line number Diff line change @@ -272,7 +272,7 @@ class HttpClient : public Client
272
272
@return Length of the body, in bytes, or kNoContentLengthHeader if no
273
273
Content-Length header was returned by the server
274
274
*/
275
- int contentLength ();
275
+ long contentLength ();
276
276
277
277
/* * Returns if the response body is chunked
278
278
@return true if response body is chunked, false otherwise
@@ -374,7 +374,7 @@ class HttpClient : public Client
374
374
// Stores the status code for the response, once known
375
375
int iStatusCode;
376
376
// Stores the value of the Content-Length header, if present
377
- int iContentLength;
377
+ long iContentLength;
378
378
// How many bytes of the response body have been read by the user
379
379
int iBodyLengthConsumed;
380
380
// How far through a Content-Length header prefix we are
You can’t perform that action at this time.
0 commit comments