Update src/Http.cpp

Co-authored-by: Lion <development@kortlepel.com>
This commit is contained in:
SaltySnail 2024-06-16 02:53:01 +02:00 committed by GitHub
parent 63fa65e9a7
commit e776848a76
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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