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:
azivner
2018-11-30 15:49:35 +01:00
parent 4cc08bff8b
commit 8ee80cb5f1
3 changed files with 5 additions and 4 deletions

View File

@@ -15,7 +15,7 @@ function setDataKey(decryptedDataKey) {
}
function setProtectedSessionId(req) {
cls.namespace.set('protectedSessionId', req.headers.protected_session_id);
cls.namespace.set('protectedSessionId', req.headers['trilium-protected-session-id']);
}
function getProtectedSessionId() {