Skip to content

Commit

Permalink
Remove dead code in cpp-httplib
Browse files Browse the repository at this point in the history
  • Loading branch information
gjasny committed Jul 7, 2021
1 parent 5e80a0d commit d9e883b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/third_party/httplib.h
Original file line number Diff line number Diff line change
Expand Up @@ -5737,11 +5737,9 @@ inline bool ClientImpl::write_request(Stream &strm, Request &req,
// Body
if (req.body.empty()) {
return write_content_with_provider(strm, req, error);
} else {
return detail::write_data(strm, req.body.data(), req.body.size());
}

return true;
return detail::write_data(strm, req.body.data(), req.body.size());
}

inline std::unique_ptr<Response> ClientImpl::send_with_content_provider(
Expand Down

0 comments on commit d9e883b

Please sign in to comment.