Skip to content

Commit

Permalink
fix: fix requests fizzling if the response doesn't contain Content-Le…
Browse files Browse the repository at this point in the history
…ngth
  • Loading branch information
Mishura4 committed Aug 30, 2024
1 parent 1b72a57 commit 23fe083
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dpp/httpsclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ bool https_client::handle_buffer(std::string &buffer)
case HTTPS_CONTENT:
body += buffer;
buffer.clear();
if (body.length() >= content_length) {
if (content_length == ULLONG_MAX || body.length() >= content_length) {
state = HTTPS_DONE;
this->close();
return false;
Expand Down

0 comments on commit 23fe083

Please sign in to comment.