mirror of
https://github.com/zadam/trilium.git
synced 2025-11-09 23:05:51 +01:00
using dashes instead of underscores in header names to avoid the fact that nginx by default drops all headers with underscore in the header name
This commit is contained in:
@@ -66,7 +66,7 @@ function route(method, path, middleware, routeHandler, resultHandler, transactio
|
||||
router[method](path, ...middleware, async (req, res, next) => {
|
||||
try {
|
||||
const result = await cls.init(async () => {
|
||||
cls.namespace.set('sourceId', req.headers.source_id);
|
||||
cls.namespace.set('sourceId', req.headers['trilium-source-id']);
|
||||
protectedSessionService.setProtectedSessionId(req);
|
||||
|
||||
if (transactional) {
|
||||
|
||||
Reference in New Issue
Block a user