diff options
Diffstat (limited to 'response.cpp')
-rw-r--r-- | response.cpp | 12 |
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; }}, }; |