aboutsummaryrefslogtreecommitdiff
path: root/src/zenserver/storage/zenstorageserver.cpp
diff options
context:
space:
mode:
authorLiam Mitchell <[email protected]>2026-03-04 17:52:54 -0800
committerLiam Mitchell <[email protected]>2026-03-04 17:52:54 -0800
commit1cd70d1e875c2331d8a3c57aa8b0fd7267a63973 (patch)
treea8a70a2e2dc775f76578d19b4cdc04f1a8824265 /src/zenserver/storage/zenstorageserver.cpp
parentRestore debug logging in zenserver tests (diff)
downloadzen-1cd70d1e875c2331d8a3c57aa8b0fd7267a63973.tar.xz
zen-1cd70d1e875c2331d8a3c57aa8b0fd7267a63973.zip
Allow requests with invalid content-types unless specified in command line or config
Diffstat (limited to 'src/zenserver/storage/zenstorageserver.cpp')
-rw-r--r--src/zenserver/storage/zenstorageserver.cpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/zenserver/storage/zenstorageserver.cpp b/src/zenserver/storage/zenstorageserver.cpp
index b2cae6482..ea05bd155 100644
--- a/src/zenserver/storage/zenstorageserver.cpp
+++ b/src/zenserver/storage/zenstorageserver.cpp
@@ -205,8 +205,14 @@ ZenStorageServer::InitializeServices(const ZenStorageServerConfig& ServerOptions
m_OpenProcessCache = std::make_unique<OpenProcessCache>();
m_ProjectStore = new ProjectStore(*m_CidStore, m_DataRoot / "projects", m_GcManager, ProjectStore::Configuration{});
- m_HttpProjectService.reset(
- new HttpProjectService{*m_CidStore, m_ProjectStore, m_StatusService, m_StatsService, *m_AuthMgr, *m_OpenProcessCache, *m_JobQueue});
+ m_HttpProjectService.reset(new HttpProjectService{*m_CidStore,
+ m_ProjectStore,
+ m_StatusService,
+ m_StatsService,
+ *m_AuthMgr,
+ *m_OpenProcessCache,
+ *m_JobQueue,
+ ServerOptions.RestrictContentTypes});
if (ServerOptions.WorksSpacesConfig.Enabled)
{