mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-09 09:16:42 +00:00
Actions fix (#11)
* update workflows to accomodate new requirements * add boost to vkpkg * try without boost again * use boost just boost * might cache vcpkg or might not idk * dont pull everything in boost * clean up includes * fix 1 * fix 2 * fix 3 * fix 4 * fix id 6 * remove libssl again * move to boost 1.71 * add boost to windows cmake * change from boost 1.71 to 1.70 * fix cmake again * remove version because f cmake * remove stuff again * fix my mistakes * fix linker args for unix * openssl * add openssl to vcpkg * uhh change whats linked * rename OpenSSL to OPENSSL????
This commit is contained in:
@@ -11,13 +11,8 @@
|
||||
|
||||
#include <boost/asio/connect.hpp>
|
||||
#include <boost/asio/ip/tcp.hpp>
|
||||
#include <boost/asio/ssl/error.hpp>
|
||||
#include <boost/asio/ssl/stream.hpp>
|
||||
#include <boost/beast/core.hpp>
|
||||
#include <boost/beast/http.hpp>
|
||||
#include <boost/beast.hpp>
|
||||
#include <boost/beast/ssl.hpp>
|
||||
#include <boost/beast/version.hpp>
|
||||
#include <boost/lexical_cast.hpp>
|
||||
#include <cstdlib>
|
||||
#include <iostream>
|
||||
#include <sstream>
|
||||
@@ -118,7 +113,7 @@ std::string PostHTTP(const std::string& host, const std::string& target, const s
|
||||
} else {
|
||||
req.set(http::field::content_type, "application/x-www-form-urlencoded");
|
||||
}
|
||||
req.set(http::field::content_length, boost::lexical_cast<std::string>(body.size()));
|
||||
req.set(http::field::content_length, std::to_string(body.size()));
|
||||
req.body() = body;
|
||||
// info("body is " + body + " (" + req.body() + ")");
|
||||
// info("content size is " + std::to_string(body.size()) + " (" + boost::lexical_cast<std::string>(body.size()) + ")");
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
#include "CustomAssert.h"
|
||||
|
||||
#include "Startup.h"
|
||||
#include <curl/curl.h>
|
||||
#include <iostream>
|
||||
#include <thread>
|
||||
#ifndef WIN32
|
||||
@@ -33,9 +32,6 @@ int main(int argc, char* argv[]) {
|
||||
signal(SIGPIPE, UnixSignalHandler);
|
||||
#endif // WIN32
|
||||
DebugPrintTID();
|
||||
// curl needs to be initialized to properly deallocate its resources later
|
||||
[[maybe_unused]] auto ret = curl_global_init(CURL_GLOBAL_DEFAULT);
|
||||
Assert(ret == CURLE_OK);
|
||||
#ifdef DEBUG
|
||||
std::thread t1(loop);
|
||||
t1.detach();
|
||||
@@ -48,7 +44,5 @@ int main(int argc, char* argv[]) {
|
||||
HBInit();
|
||||
StatInit();
|
||||
NetMain();
|
||||
// clean up curl at the end to be sure
|
||||
curl_global_cleanup();
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user