mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-08-16 00:06:33 +00:00
Update src/Http.cpp
Co-authored-by: Lion <development@kortlepel.com>
This commit is contained in:
parent
63fa65e9a7
commit
e776848a76
@ -75,8 +75,7 @@ std::string Http::GET(const std::string& host, int port, const std::string& targ
|
||||
}
|
||||
|
||||
std::string Http::POST(const std::string& host, int port, const std::string& target, const std::string& body, const std::string& ContentType, unsigned int* status, const httplib::Headers& headers) {
|
||||
std::shared_ptr<httplib::SSLClient> client;
|
||||
client = getClient({host, port});
|
||||
std::shared_ptr<httplib::SSLClient> client = getClient({host, port});
|
||||
client->set_read_timeout(std::chrono::seconds(10));
|
||||
beammp_assert(client->is_valid());
|
||||
client->enable_server_certificate_verification(false);
|
||||
|
Loading…
x
Reference in New Issue
Block a user