From fe9f0d08f14789f7a79ff864baa4ddc6a053a438 Mon Sep 17 00:00:00 2001 From: Chloe Date: Wed, 25 Dec 2024 02:55:30 +0500 Subject: [PATCH 1/2] fix: revert content-type changes --- packages/astro-rss/src/index.ts | 2 +- packages/astro-rss/test/rss.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/astro-rss/src/index.ts b/packages/astro-rss/src/index.ts index 23984f9fbda1..33a8f66a0261 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 () => { From 2c24a313f8a625ae67b028205aa91463bd70855a Mon Sep 17 00:00:00 2001 From: Chloe Date: Wed, 25 Dec 2024 02:55:37 +0500 Subject: [PATCH 2/2] chore: changeset --- .changeset/hot-pumas-attack.md | 5 +++++ 1 file changed, 5 insertions(+) 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 000000000000..3dc33cbc107c --- /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