From 0e938c14044f66f7ad0ffe3eeda5fa8969a83849 Mon Sep 17 00:00:00 2001 From: "E.T." <190912194+ElectricTea@users.noreply.github.com> Date: Sun, 11 Jan 2026 03:07:55 -0500 Subject: fix: Accept more permissive RSS feed content types and Fix User-Agent key (#2353) * Fix User-Agent key and accept more permissive content types Some feeds are Content-Type application/xml only and will respond with a 406 error to responses with a header of content type application/rss+xml. This change allows for the more permissive content types application/xml and text/xml to be accepted Also fixes UserAgent with correct User-Agent * Fix: Remote trailing whitespace in feedWorker.ts Fix formatting on HTTP Header for RSS Accceptable Content-Types introduced in commit 6896392 * format --- apps/workers/workers/feedWorker.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/workers/workers/feedWorker.ts b/apps/workers/workers/feedWorker.ts index cd4f3e82..eed7ccb1 100644 --- a/apps/workers/workers/feedWorker.ts +++ b/apps/workers/workers/feedWorker.ts @@ -156,9 +156,9 @@ async function run(req: DequeuedJob) { const response = await fetchWithProxy(feed.url, { signal: AbortSignal.timeout(5000), headers: { - UserAgent: + "User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36", - Accept: "application/rss+xml", + Accept: "application/rss+xml, application/xml;q=0.9, text/xml;q=0.8", }, }); if (response.status !== 200) { -- cgit v1.2.3-70-g09d2