This commit is contained in:
parent
ba86ac288d
commit
ee28bb4c44
2 changed files with 2 additions and 2 deletions
|
@ -4,5 +4,5 @@ import type { APIContext } from 'astro';
|
|||
export async function GET(context: APIContext): Promise<Response> {
|
||||
const feed = await computeFeed();
|
||||
|
||||
return new Response(feed.json1())
|
||||
return new Response(feed.json1(), { headers: { "Content-Type": "application/json" } })
|
||||
}
|
|
@ -3,5 +3,5 @@ import { computeFeed, injectXSL } from "../../lib/feed.ts";
|
|||
export async function GET(): Promise<Response> {
|
||||
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" } })
|
||||
}
|
Loading…
Add table
Reference in a new issue