From ce2d067999eb27218106b7c8c051ebdb1aa86b6a Mon Sep 17 00:00:00 2001 From: Fabrice LAMANT Date: Sun, 8 Feb 2026 11:14:20 +0100 Subject: [PATCH] set mime type and correct line returns --- ui/app/api/data/[[...slug]]/route.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ui/app/api/data/[[...slug]]/route.ts b/ui/app/api/data/[[...slug]]/route.ts index b283dcdf4..164a4aa80 100644 --- a/ui/app/api/data/[[...slug]]/route.ts +++ b/ui/app/api/data/[[...slug]]/route.ts @@ -16,7 +16,7 @@ export async function GET( const content = await fs.readFile(filePath, "utf-8"); if (!content) throw new Error() - return new NextResponse(content, { status: 200 }); + return new NextResponse(content, { status: 200, headers: { "Content-Type": "text/calendar" } }); } catch (ex) { console.log(ex); return new NextResponse("File not found", { status: 404 });