mirror of
https://github.com/BeamMP/BeamMP-Server.git
synced 2026-04-23 16:36:49 +00:00
Tweaks
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
#pragma once
|
#pragma once
|
||||||
#undef max //fixes windows macro
|
|
||||||
#include "commandline/commandline.h"
|
#include "commandline/commandline.h"
|
||||||
#include "TLuaFile.h"
|
#include "TLuaFile.h"
|
||||||
#include <atomic>
|
#include <atomic>
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
#include "Http.h"
|
#include "Http.h"
|
||||||
|
|
||||||
//#include "Common.h"
|
#include "Common.h"
|
||||||
#include <boost/asio/connect.hpp>
|
#include <boost/asio/connect.hpp>
|
||||||
#include <boost/asio/ip/tcp.hpp>
|
#include <boost/asio/ip/tcp.hpp>
|
||||||
#include <boost/beast.hpp>
|
#include <boost/beast.hpp>
|
||||||
@@ -47,7 +47,7 @@ std::string Http::GET(const std::string& host, int port, const std::string& targ
|
|||||||
return result;
|
return result;
|
||||||
|
|
||||||
} catch (const std::exception& e) {
|
} catch (const std::exception& e) {
|
||||||
//error(e.what());
|
error(e.what());
|
||||||
return "-1";
|
return "-1";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -137,7 +137,7 @@ std::string Http::POST(const std::string& host, const std::string& target, const
|
|||||||
return std::string(response.body());
|
return std::string(response.body());
|
||||||
|
|
||||||
} catch (const std::exception& e) {
|
} catch (const std::exception& e) {
|
||||||
//error(e.what());
|
error(e.what());
|
||||||
return "-1";
|
return "-1";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user