diff --git a/src/routes/[preset]/+server.ts b/src/routes/[preset]/+server.ts index e22ffe7..e82b0b8 100644 --- a/src/routes/[preset]/+server.ts +++ b/src/routes/[preset]/+server.ts @@ -56,7 +56,8 @@ export const GET: RequestHandler = async ({ params }) => { return new Response(response, { status: 200, headers: { - 'Content-Type': 'text/plain; charset=utf-8' + 'Content-Type': 'text/plain; charset=utf-8', + 'Content-Disposition': `attachment; filename="${presetNames.join('-')}.txt"` } }) } catch (e) {