Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
ContentLength can go over 2 byte int
Converted int to long to allow for more then 65535 bytes in length
  • Loading branch information
Park0 authored Jun 28, 2020
commit 0fac9f0033de4e1f45a9e2d2a28d326c94354163
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