aboutsummaryrefslogtreecommitdiff
path: root/zenhttp/httpserver.cpp
diff options
context:
space:
mode:
authorStefan Boberg <[email protected]>2021-10-03 17:02:10 +0200
committerStefan Boberg <[email protected]>2021-10-03 17:02:10 +0200
commit4695fd893e5ad2d793c79e8cde9cb0673760893b (patch)
tree98e35749ab4047c804dbb95fbbd81e7efd31c356 /zenhttp/httpserver.cpp
parentstructurec cache: Added ad hoc special case for /z$/stats.json request (diff)
parentAdded support for SkipData cache policy. (diff)
downloadzen-4695fd893e5ad2d793c79e8cde9cb0673760893b.tar.xz
zen-4695fd893e5ad2d793c79e8cde9cb0673760893b.zip
Merged from upstream
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
};