From 80dc8fec4254ec5a32447ee95fa026e1e4f3bc6d Mon Sep 17 00:00:00 2001 From: Mark Taylor Date: Tue, 27 May 2014 15:47:07 +1000 Subject: [PATCH] RSS Feed MIME type not being set correctly MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaced header() with addHeader() to correctly define the RSS feed’s MIME type. --- code/Calendar.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/code/Calendar.php b/code/Calendar.php index 52782e6..ff016c3 100755 --- a/code/Calendar.php +++ b/code/Calendar.php @@ -653,7 +653,7 @@ public function rss() { $xml = preg_replace('//', '', $xml); $xml = trim($xml); HTTP::add_cache_headers(); - header("Content-type: text/xml"); + $this->getResponse()->addHeader('Content-Type', 'application/rss+xml'); echo $xml; }