]> git.wh0rd.org - tt-rss.git/blobdiff - backend.php
add experimental support for simplepie (once again)
[tt-rss.git] / backend.php
index 4b749f9a9580d4eeec16e28a0ab9180bba8ef01a..0e4541e74c069f87a6291505c172e64bf84998c1 100644 (file)
                        $op == "digestSend" || $op == "viewfeed" || $op == "publish" ||
                        $op == "globalUpdateFeeds") && !$_REQUEST["noxml"]) {
                header("Content-Type: application/xml; charset=utf-8");
-       } else {
-               header("Content-Type: text/html; charset=utf-8");
+               } else {
+               if (!$_REQUEST["noxml"]) {
+                       header("Content-Type: text/html; charset=utf-8");
+               } else {
+                       header("Content-Type: text/plain; charset=utf-8");
+               }
        }
 
        if (!$op) {