diff options
| author | Liam Mitchell <[email protected]> | 2026-03-04 17:52:54 -0800 |
|---|---|---|
| committer | Liam Mitchell <[email protected]> | 2026-03-04 17:52:54 -0800 |
| commit | 1cd70d1e875c2331d8a3c57aa8b0fd7267a63973 (patch) | |
| tree | a8a70a2e2dc775f76578d19b4cdc04f1a8824265 /src/zenserver/storage/zenstorageserver.cpp | |
| parent | Restore debug logging in zenserver tests (diff) | |
| download | zen-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.cpp | 10 |
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) { |