mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-08-16 16:26:26 +00:00
Update src/Http.cpp
Co-authored-by: Lion <development@kortlepel.com>
This commit is contained in:
parent
c07baeed1a
commit
63fa65e9a7
@ -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());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user