This commit is contained in:
Rizky 2024-03-16 10:05:20 +07:00
parent f8afc41afb
commit 40f98e04ac
1 changed files with 1 additions and 0 deletions

View File

@ -133,6 +133,7 @@ export const _ = {
const fname = arr.join("-") + "." + ext;
const ctype = mime.getType(fname);
if (ctype) {
res.headers.set("content-disposition", `inline; filename="${fname}"`);
res.headers.set("content-type", ctype);
}