mirror of
https://github.com/zadam/trilium.git
synced 2025-11-17 02:30:42 +01:00
small refactorings and fixes
This commit is contained in:
@@ -63,7 +63,7 @@ function register(router) {
|
||||
throw new eu.EtapiError(400, "ATTACHMENT_IS_PROTECTED", `Attachment '${req.params.attachmentId}' is protected and content cannot be read through ETAPI.`);
|
||||
}
|
||||
|
||||
const filename = utils.formatDownloadTitle(attachment.title, attachment.type, attachment.mime);
|
||||
const filename = utils.formatDownloadTitle(attachment.title, attachment.role, attachment.mime);
|
||||
|
||||
res.setHeader('Content-Disposition', utils.getContentDisposition(filename));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user