diff --git a/src/pages/feeds/feed.json.ts b/src/pages/feeds/feed.json.ts index 727f3a0..5aa3d18 100644 --- a/src/pages/feeds/feed.json.ts +++ b/src/pages/feeds/feed.json.ts @@ -4,5 +4,5 @@ import type { APIContext } from 'astro'; export async function GET(context: APIContext): Promise { const feed = await computeFeed(); - return new Response(feed.json1()) + return new Response(feed.json1(), { headers: { "Content-Type": "application/json" } }) } \ No newline at end of file diff --git a/src/pages/feeds/feed.xml.ts b/src/pages/feeds/feed.xml.ts index 1f0cf6d..a1046a0 100644 --- a/src/pages/feeds/feed.xml.ts +++ b/src/pages/feeds/feed.xml.ts @@ -3,5 +3,5 @@ import { computeFeed, injectXSL } from "../../lib/feed.ts"; export async function GET(): Promise { const feed = await computeFeed(); - return new Response(injectXSL(feed.atom1(), "/feed.xsl")) + return new Response(injectXSL(feed.atom1(), "/feed.xsl"), { headers: { "Content-Type": "application/atom+xml" } }) } \ No newline at end of file