diff --git a/.changeset/loud-cobras-rhyme.md b/.changeset/loud-cobras-rhyme.md new file mode 100644 index 0000000000..1a16b2d2ba --- /dev/null +++ b/.changeset/loud-cobras-rhyme.md @@ -0,0 +1,5 @@ +--- +'@astrojs/rss': patch +--- + +Sends the standard RSS content type response header, with UTF-8 charset diff --git a/packages/astro-rss/src/index.ts b/packages/astro-rss/src/index.ts index 33a8f66a02..23984f9fbd 100644 --- a/packages/astro-rss/src/index.ts +++ b/packages/astro-rss/src/index.ts @@ -89,7 +89,7 @@ export default async function getRssResponse(rssOptions: RSSOptions): Promise { assertXmlDeepEqual(str, validXmlResult); const contentType = response.headers.get('Content-Type'); - assert.equal(contentType, 'application/xml'); + assert.equal(contentType, 'application/rss+xml; charset=utf-8'); }); it('should be the same string as getRssString', async () => {