wip fix
This commit is contained in:
parent
f8afc41afb
commit
40f98e04ac
|
|
@ -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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue