aboutsummaryrefslogtreecommitdiff
path: root/zenhttp/httpserver.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'zenhttp/httpserver.cpp')
-rw-r--r--zenhttp/httpserver.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/zenhttp/httpserver.cpp b/zenhttp/httpserver.cpp
index 58f6858a8..193426ed2 100644
--- a/zenhttp/httpserver.cpp
+++ b/zenhttp/httpserver.cpp
@@ -76,6 +76,7 @@ static constinit uint32_t HashCompactBinaryPackageOffer = HashStringDjb2("applic
static constinit uint32_t HashCompressedBinary = HashStringDjb2("application/x-ue-comp"sv);
static constinit uint32_t HashJson = HashStringDjb2("json"sv);
static constinit uint32_t HashYaml = HashStringDjb2("yaml"sv);
+static constinit uint32_t HashHtml = HashStringDjb2("text/html"sv);
std::once_flag InitContentTypeLookup;
@@ -94,7 +95,8 @@ struct HashedTypeEntry
{HashYaml, HttpContentType::kYAML},
{HashApplicationYaml, HttpContentType::kYAML},
{HashText, HttpContentType::kText},
- {HashCompressedBinary, HttpContentType::kCompressedBinary}
+ {HashCompressedBinary, HttpContentType::kCompressedBinary},
+ {HashHtml, HttpContentType::kHTML},
// clang-format on
};