From ebe2aa95c7f4a6559cec8b82d155da34a57bdd53 Mon Sep 17 00:00:00 2001 From: Chloe Arciniega Date: Thu, 26 Dec 2024 13:52:34 +0500 Subject: [PATCH] fix(@astrojs/rss): revert incorrect Content-Type header applied for RSS XML file (#12829) * fix: revert content-type changes * chore: changeset --- .changeset/hot-pumas-attack.md | 5 +++++ packages/astro-rss/src/index.ts | 2 +- packages/astro-rss/test/rss.test.js | 2 +- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .changeset/hot-pumas-attack.md 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 () => {