From 9d00f7319eda30ec91637a75b3fddc171e135233 Mon Sep 17 00:00:00 2001 From: Roland Reichwein Date: Wed, 4 Jan 2023 20:57:15 +0100 Subject: Adjust to new environment --- response.cpp | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'response.cpp') 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 @@ -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> 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; }}, }; -- cgit v1.2.3