mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-07-23 15:10:42 +00:00
+1
-2
@@ -60,8 +60,7 @@ static thread_local std::array<std::shared_ptr<httplib::SSLClient>, CONNECTION_A
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::string Http::GET(const std::string& host, int port, const std::string& target, unsigned int* status) {
|
std::string Http::GET(const std::string& host, int port, const std::string& target, unsigned int* status) {
|
||||||
std::shared_ptr<httplib::SSLClient> client;
|
std::shared_ptr<httplib::SSLClient> client = getClient({host, port});
|
||||||
client = getClient({host, port});
|
|
||||||
client->enable_server_certificate_verification(false);
|
client->enable_server_certificate_verification(false);
|
||||||
client->set_address_family(AF_INET);
|
client->set_address_family(AF_INET);
|
||||||
auto res = client->Get(target.c_str());
|
auto res = client->Get(target.c_str());
|
||||||
|
|||||||
Reference in New Issue
Block a user