rss: set content-type to xml
* Work on https://github.com/sebsauvage/MinigalNano/issues/48
This commit is contained in:
parent
fcd6740d57
commit
284a978f67
1 changed files with 1 additions and 0 deletions
1
rss.php
1
rss.php
|
@ -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>";
|
||||||
|
|
Loading…
Reference in a new issue