diff --git a/.changeset/hot-pumas-attack.md b/.changeset/hot-pumas-attack.md new file mode 100644 index 0000000000..3dc33cbc10 --- /dev/null +++ b/.changeset/hot-pumas-attack.md @@ -0,0 +1,5 @@ +--- +'@astrojs/rss': patch +--- + +Revert incorrect Content-Type header applied for RSS XML file diff --git a/packages/astro-rss/src/index.ts b/packages/astro-rss/src/index.ts index 23984f9fbd..33a8f66a02 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/rss+xml; charset=utf-8'); + assert.equal(contentType, 'application/xml'); }); it('should be the same string as getRssString', async () => {