From 78a71ab599949440336993324c54ff250a402745 Mon Sep 17 00:00:00 2001 From: saipubw Date: Sat, 14 Sep 2024 08:31:24 +0800 Subject: [PATCH] [coro_http][fix] fix handle result of async_upload (#774) --- include/ylt/standalone/cinatra/coro_http_client.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/include/ylt/standalone/cinatra/coro_http_client.hpp b/include/ylt/standalone/cinatra/coro_http_client.hpp index a8a6f668a..00d31efc2 100644 --- a/include/ylt/standalone/cinatra/coro_http_client.hpp +++ b/include/ylt/standalone/cinatra/coro_http_client.hpp @@ -1175,6 +1175,7 @@ class coro_http_client : public std::enable_shared_from_this { if (ec && socket_->is_timeout_) { ec = std::make_error_code(std::errc::timed_out); } + handle_result(data, ec, is_keep_alive); co_return data; }