From 63fa65e9a7ca8cdbea902bfd926e2201fc44a565 Mon Sep 17 00:00:00 2001 From: SaltySnail <51403141+SaltySnail@users.noreply.github.com> Date: Sun, 16 Jun 2024 02:52:55 +0200 Subject: [PATCH] Update src/Http.cpp Co-authored-by: Lion --- src/Http.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Http.cpp b/src/Http.cpp index 77a4323..33cbd2c 100644 --- a/src/Http.cpp +++ b/src/Http.cpp @@ -60,8 +60,7 @@ static thread_local std::array, CONNECTION_A } std::string Http::GET(const std::string& host, int port, const std::string& target, unsigned int* status) { - std::shared_ptr client; - client = getClient({host, port}); + std::shared_ptr client = getClient({host, port}); client->enable_server_certificate_verification(false); client->set_address_family(AF_INET); auto res = client->Get(target.c_str());