From 6b9ffc8beccb1d472d2d7d32be03b0431c531cb7 Mon Sep 17 00:00:00 2001 From: Gregor Jasny Date: Fri, 18 Jun 2021 13:20:34 +0200 Subject: [PATCH] Remove dead code (#965) --- httplib.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/httplib.h b/httplib.h index 13df9a0..b18f54e 100644 --- a/httplib.h +++ b/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(