diff options
| author | Per Larsson <[email protected]> | 2021-10-03 09:38:09 +0200 |
|---|---|---|
| committer | Per Larsson <[email protected]> | 2021-10-03 09:38:09 +0200 |
| commit | 645ce60a493e7c1af24f245c56b6c3fca3e3f2b2 (patch) | |
| tree | 0a736364bee03c2e7b3916eb9981ebe60c7340e9 /zenhttp/httpserver.cpp | |
| parent | Merge branch 'main' of https://github.com/EpicGames/zen (diff) | |
| download | zen-645ce60a493e7c1af24f245c56b6c3fca3e3f2b2.tar.xz zen-645ce60a493e7c1af24f245c56b6c3fca3e3f2b2.zip | |
Fixed missing content type.
Diffstat (limited to 'zenhttp/httpserver.cpp')
| -rw-r--r-- | zenhttp/httpserver.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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) |