mirror of
https://github.com/zadam/trilium.git
synced 2025-10-29 17:26:38 +01:00
set note type/mime in PUT body to avoid http proxy slash reencoding, fixes #2419
This commit is contained in:
@@ -120,9 +120,8 @@ function protectNote(req) {
|
||||
|
||||
function setNoteTypeMime(req) {
|
||||
// can't use [] destructuring because req.params is not iterable
|
||||
const noteId = req.params[0];
|
||||
const type = req.params[1];
|
||||
const mime = req.params[2];
|
||||
const {noteId} = req.params;
|
||||
const {type, mime} = req.body;
|
||||
|
||||
const note = becca.getNote(noteId);
|
||||
note.type = type;
|
||||
|
||||
Reference in New Issue
Block a user