From 645ce60a493e7c1af24f245c56b6c3fca3e3f2b2 Mon Sep 17 00:00:00 2001 From: Per Larsson Date: Sun, 3 Oct 2021 09:38:09 +0200 Subject: Fixed missing content type. --- zenhttp/httpserver.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'zenhttp/httpserver.cpp') diff --git a/zenhttp/httpserver.cpp b/zenhttp/httpserver.cpp index cfd1463ba..3a746fd51 100644 --- a/zenhttp/httpserver.cpp +++ b/zenhttp/httpserver.cpp @@ -74,6 +74,7 @@ static constinit uint32_t HashCompactBinary = HashStringDjb2("application/x-u static constinit uint32_t HashCompactBinaryPackage = HashStringDjb2("application/x-ue-cbpkg"sv); static constinit uint32_t HashCompactBinaryPackageOffer = HashStringDjb2("application/x-ue-offer"sv); static constinit uint32_t HashCompressedBinary = HashStringDjb2("application/x-ue-comp"sv); +static constinit uint32_t HashHtml = HashStringDjb2("text/html"sv); std::once_flag InitContentTypeLookup; @@ -88,7 +89,8 @@ struct HashedTypeEntry {HashJson, HttpContentType::kJSON}, {HashYaml, HttpContentType::kYAML}, {HashText, HttpContentType::kText}, - {HashCompressedBinary, HttpContentType::kCompressedBinary}}; + {HashCompressedBinary, HttpContentType::kCompressedBinary}, + {HashHtml, HttpContentType::kHTML}}; HttpContentType ParseContentTypeImpl(const std::string_view& ContentTypeString) -- cgit v1.2.3