mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2025-07-03 16:25:35 +00:00
fix boost crash
This commit is contained in:
parent
667bd7f7c8
commit
cda8168c58
@ -1,11 +1,10 @@
|
||||
#include "Http.h"
|
||||
|
||||
|
||||
#include "Common.h"
|
||||
#include <boost/asio/connect.hpp>
|
||||
#include <boost/asio/ip/tcp.hpp>
|
||||
#include <boost/beast.hpp>
|
||||
#include <boost/beast/ssl.hpp>
|
||||
#include "Common.h"
|
||||
|
||||
namespace beast = boost::beast; // from <boost/beast.hpp>
|
||||
namespace http = beast::http; // from <boost/beast/http.hpp>
|
||||
@ -140,5 +139,8 @@ std::string Http::POST(const std::string& host, const std::string& target, const
|
||||
} catch (const std::exception& e) {
|
||||
error(e.what());
|
||||
return "-1";
|
||||
} catch (const boost::system::system_error& e) {
|
||||
error(e.what());
|
||||
return "-1";
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user