diff options
| author | Stefan Boberg <[email protected]> | 2021-05-25 09:56:19 +0200 |
|---|---|---|
| committer | Stefan Boberg <[email protected]> | 2021-05-25 09:56:19 +0200 |
| commit | 1f6072aae0f6372422b0544e28a01defff203f00 (patch) | |
| tree | d98793c1404a6c8c8d819ce182b0877a63cdd1b0 /zencore/httpserver.cpp | |
| parent | Merged from origin/main (diff) | |
| download | zen-1f6072aae0f6372422b0544e28a01defff203f00.tar.xz zen-1f6072aae0f6372422b0544e28a01defff203f00.zip | |
constinit -> const for now so that the code builds with the non-preview compiler
Diffstat (limited to 'zencore/httpserver.cpp')
| -rw-r--r-- | zencore/httpserver.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/zencore/httpserver.cpp b/zencore/httpserver.cpp index bd54c90ab..72687f310 100644 --- a/zencore/httpserver.cpp +++ b/zencore/httpserver.cpp @@ -931,12 +931,12 @@ HttpSysServer::RemoveEndpoint(const char* UrlPath, HttpService& Service) using namespace std::literals; -static constinit uint32_t HashBinary = HashStringDjb2("application/octet-stream"sv); -static constinit uint32_t HashJson = HashStringDjb2("application/json"sv); -static constinit uint32_t HashYaml = HashStringDjb2("text/yaml"sv); -static constinit uint32_t HashText = HashStringDjb2("text/plain"sv); -static constinit uint32_t HashCompactBinary = HashStringDjb2("application/x-ue-cb"sv); -static constinit uint32_t HashCompactBinaryPackage = HashStringDjb2("application/x-ue-cbpkg"sv); +static const uint32_t HashBinary = HashStringDjb2("application/octet-stream"sv); +static const uint32_t HashJson = HashStringDjb2("application/json"sv); +static const uint32_t HashYaml = HashStringDjb2("text/yaml"sv); +static const uint32_t HashText = HashStringDjb2("text/plain"sv); +static const uint32_t HashCompactBinary = HashStringDjb2("application/x-ue-cb"sv); +static const uint32_t HashCompactBinaryPackage = HashStringDjb2("application/x-ue-cbpkg"sv); HttpContentType MapContentType(const std::string_view& ContentTypeString) |