summaryrefslogtreecommitdiffhomepage
path: root/response.cpp
diff options
context:
space:
mode:
authorRoland Reichwein <mail@reichwein.it>2023-01-04 20:57:15 +0100
committerRoland Reichwein <mail@reichwein.it>2023-01-04 20:57:15 +0100
commit9d00f7319eda30ec91637a75b3fddc171e135233 (patch)
tree213fd6694cec8b30aed712837f68bb1aba0e8f89 /response.cpp
parent8475a181be2301702c409a20dc99115ee54ec9cc (diff)
Adjust to new environment
Diffstat (limited to 'response.cpp')
-rw-r--r--response.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/response.cpp b/response.cpp
index 92390cd..17d3e48 100644
--- a/response.cpp
+++ b/response.cpp
@@ -1,11 +1,11 @@
#include "response.h"
#include "auth.h"
-#include "base64.h"
-#include "os.h"
-#include "libreichwein/mime.h"
+#include "libreichwein/base64.h"
#include "libreichwein/file.h"
+#include "libreichwein/mime.h"
+#include "libreichwein/os.h"
#include <boost/algorithm/string/predicate.hpp>
@@ -16,6 +16,8 @@
using namespace std::placeholders;
using namespace Reichwein::Mime;
+using namespace Reichwein::OS;
+using namespace Reichwein::Base64;
namespace {
@@ -122,8 +124,8 @@ std::unordered_map<std::string, std::function<std::string(Server&)>> GetServerPa
{"ipv6", [](Server& server) { return is_ipv6_address(server.GetSocket().address) ? "yes" : "no"; }},
{"port", [](Server& server) { return server.GetSocket().port; }},
{"statistics", [](Server& server) { return server.GetStatistics().getValues(); }},
- {"uptime_host", [](Server& server) { return OS::uptime_host(); }},
- {"uptime_webserver", [](Server& server) { return OS::uptime_process(); }},
+ {"uptime_host", [](Server& server) { return uptime_host(); }},
+ {"uptime_webserver", [](Server& server) { return uptime_process(); }},
{"version", [](Server& server) { return Server::VersionString; }},
};