From 839bb31316155622e4711a8421bb3209e698aefd Mon Sep 17 00:00:00 2001 From: Fabrice LAMANT Date: Mon, 16 Feb 2026 10:46:31 +0100 Subject: [PATCH] fix mime type --- 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 164a4aa80..c2689002f 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, headers: { "Content-Type": "text/calendar" } }); + return new NextResponse(content, { status: 200, headers: { "Content-Type": slug?.join("/").endsWith(".ics") ? "text/calendar" : "text/json" } }); } catch (ex) { console.log(ex); return new NextResponse("File not found", { status: 404 });