Skip to content

Commit

Permalink
Merge pull request #53 from tardinha/master
Browse files Browse the repository at this point in the history
RSS Feed MIME type not being set correctly
  • Loading branch information
unclecheese committed May 28, 2014
2 parents 50c587d + 80dc8fe commit 34aafaf
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 34aafaf

Please sign in to comment.