From 019211e341e25ee3b6fef157e018f51ecc01bf4e Mon Sep 17 00:00:00 2001 From: Aurelien David Date: Sat, 27 May 2023 13:48:08 +0200 Subject: [PATCH] handle content-type x-rss+xml as feed (#64) --- background.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/background.js b/background.js index 4233adf..d24b66a 100644 --- a/background.js +++ b/background.js @@ -9,9 +9,9 @@ function detectFeed(event) { for (let header of event.responseHeaders) { if (header.name.toLowerCase() == 'content-type') { - if (header.value.match(/application\/(rss|atom)\+xml/)) { + if (header.value.match(/application\/((x-)?rss|atom)\+xml/)) { header.value = header.value.replace( - /application\/(rss|atom)\+xml/, + /application\/((x-)?rss|atom)\+xml/, 'text/xml' ); isfeed = true;