Skip to content

Commit

Permalink
RSS Feed MIME type not being set correctly
Browse files Browse the repository at this point in the history
Replaced header() with addHeader() to correctly define the RSS feed’s
MIME type.
  • Loading branch information
Mark Taylor committed May 27, 2014
1 parent 50c587d commit 80dc8fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion code/Calendar.php
Original file line number Diff line number Diff line change
Expand Up @@ -653,7 +653,7 @@ public function rss() {
$xml = preg_replace('/<!--(.|\s)*?-->/', '', $xml);
$xml = trim($xml);
HTTP::add_cache_headers();
header("Content-type: text/xml");
$this->getResponse()->addHeader('Content-Type', 'application/rss+xml');
echo $xml;
}

Expand Down

0 comments on commit 80dc8fe

Please sign in to comment.