diff --git a/include/ylt/standalone/cinatra/coro_http_client.hpp b/include/ylt/standalone/cinatra/coro_http_client.hpp index 02c0ddc63..67c81782d 100644 --- a/include/ylt/standalone/cinatra/coro_http_client.hpp +++ b/include/ylt/standalone/cinatra/coro_http_client.hpp @@ -1317,17 +1317,13 @@ class coro_http_client : public std::enable_shared_from_this { if (!body_.empty()) { body_.clear(); } - if (!out_buf.empty()) { - out_buf_ = out_buf; - } + + out_buf_ = out_buf; std::shared_ptr guard(nullptr, [this](auto) { if (!req_headers_.empty()) { req_headers_.clear(); } - if (!out_buf_.empty()) { - out_buf_ = {}; - } }); resp_data data{};