Use rest::http_content_type() instead of the header() method to set response content

This commit is contained in:
Tim Almdal
2008-11-20 17:51:12 +00:00
parent b78cee6395
commit 8c06908f7f
2 changed files with 3 additions and 3 deletions

View File

@@ -48,7 +48,7 @@ class Media_RSS_Controller extends Controller {
// @todo do we want to add an upload date to the items table?
$view->pub_date = date("D, d M Y H:i:s T");
header("Content-type: application/rss+xml");
rest::http_content_type(rest::RSS);
print $view;
}
}