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());