wip fix
This commit is contained in:
@@ -133,6 +133,7 @@ export const _ = {
|
|||||||
const fname = arr.join("-") + "." + ext;
|
const fname = arr.join("-") + "." + ext;
|
||||||
const ctype = mime.getType(fname);
|
const ctype = mime.getType(fname);
|
||||||
if (ctype) {
|
if (ctype) {
|
||||||
|
res.headers.set("content-disposition", `inline; filename="${fname}"`);
|
||||||
res.headers.set("content-type", ctype);
|
res.headers.set("content-type", ctype);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user