set mime type and correct line returns
Some checks failed
Build / Build (push) Has been cancelled

This commit is contained in:
Fabrice LAMANT
2026-02-08 11:14:20 +01:00
parent 278383e4d0
commit ce2d067999

View File

@ -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 });