diff --git a/src/third_party/httplib.h b/src/third_party/httplib.h index 13df9a023c..b18f54e4da 100644 --- a/src/third_party/httplib.h +++ b/src/third_party/httplib.h @@ -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 ClientImpl::send_with_content_provider(