Skip to content

Commit 6b9ffc8

Browse files
authored
Remove dead code (#965)
1 parent d903053 commit 6b9ffc8

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

httplib.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5737,11 +5737,9 @@ inline bool ClientImpl::write_request(Stream &strm, Request &req,
57375737
// Body
57385738
if (req.body.empty()) {
57395739
return write_content_with_provider(strm, req, error);
5740-
} else {
5741-
return detail::write_data(strm, req.body.data(), req.body.size());
57425740
}
57435741

5744-
return true;
5742+
return detail::write_data(strm, req.body.data(), req.body.size());
57455743
}
57465744

57475745
inline std::unique_ptr<Response> ClientImpl::send_with_content_provider(

0 commit comments

Comments
 (0)