rss: set content-type to xml

* Work on https://github.com/sebsauvage/MinigalNano/issues/48
This commit is contained in:
nodiscc 2014-12-22 07:54:09 +01:00
parent fcd6740d57
commit 284a978f67

View file

@ -152,6 +152,7 @@ if (is_writeable(".")) {
/*===================*/ /*===================*/
/* XML Gen */ /* XML Gen */
/*===================*/ /*===================*/
header('Content-Type: text/xml');
$temp = explode("\n", $content); $temp = explode("\n", $content);
echo "<?xml version='1.0' encoding='UTF-8 '?>\n"; echo "<?xml version='1.0' encoding='UTF-8 '?>\n";
echo "<rss version='2.0'>\n<channel>"; echo "<rss version='2.0'>\n<channel>";