Skip to content
This repository was archived by the owner on Nov 13, 2024. It is now read-only.

Commit 4c57679

Browse files
committed
Feat: download as application/octet-stream
1 parent d5dca59 commit 4c57679

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/routers/http_router.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ router.get("/download/:key/:fileName", async (ctx) => {
4141
const fileDir = path.dirname(fileAbsPath);
4242
const fileName = path.basename(fileAbsPath);
4343
ctx.set("Content-Type","application/octet-stream");
44-
ctx.set("Content-Disposition","attachment");
4544
await send(ctx, fileName, { root: fileDir + "/" });
4645
} catch (error) {
4746
ctx.body = $t("http_router.downloadErr", { error: error.message });

0 commit comments

Comments
 (0)