aboutsummaryrefslogtreecommitdiff
path: root/zenhttp/httpserver.cpp
diff options
context:
space:
mode:
authorPer Larsson <[email protected]>2021-10-01 15:45:57 +0200
committerPer Larsson <[email protected]>2021-10-01 15:45:57 +0200
commitbf9abfda914d2619c30df3ab6c7904fb87c93901 (patch)
treecc9a4ba8473b8f2202964f6653c9471d7752bed4 /zenhttp/httpserver.cpp
parentAdded cache HIT/MISS stat counters. (diff)
downloadzen-bf9abfda914d2619c30df3ab6c7904fb87c93901.tar.xz
zen-bf9abfda914d2619c30df3ab6c7904fb87c93901.zip
Added simple stats HTML dashboard with route /dashboard.
Diffstat (limited to 'zenhttp/httpserver.cpp')
-rw-r--r--zenhttp/httpserver.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/zenhttp/httpserver.cpp b/zenhttp/httpserver.cpp
index 8e5d61877..cfd1463ba 100644
--- a/zenhttp/httpserver.cpp
+++ b/zenhttp/httpserver.cpp
@@ -58,6 +58,9 @@ MapContentTypeToString(HttpContentType ContentType)
case HttpContentType::kYAML:
return "text/yaml"sv;
+
+ case HttpContentType::kHTML:
+ return "text/html"sv;
}
}