Skip to content

Commit 0fac9f0

Browse files
authored
ContentLength can go over 2 byte int
Converted int to long to allow for more then 65535 bytes in length
1 parent 208dfec commit 0fac9f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: src/HttpClient.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -542,7 +542,7 @@ bool HttpClient::endOfHeadersReached()
542542
return (iState == eReadingBody || iState == eReadingChunkLength || iState == eReadingBodyChunk);
543543
};
544544

545-
int HttpClient::contentLength()
545+
long HttpClient::contentLength()
546546
{
547547
// skip the response headers, if they haven't been read already
548548
if (!endOfHeadersReached())

0 commit comments

Comments
 (0)