]> git.immae.eu Git - github/wallabag/wallabag.git/commitdiff
[fix] rss feed content type set to text/xml #636 643/head
authorNicolas Lœuillet <nicolas@loeuillet.org>
Tue, 15 Apr 2014 19:49:00 +0000 (21:49 +0200)
committerNicolas Lœuillet <nicolas@loeuillet.org>
Tue, 15 Apr 2014 19:49:00 +0000 (21:49 +0200)
inc/3rdparty/libraries/feedwriter/FeedWriter.php

index df4c8b4b7981253c841f1950066f4b6115e0b7a3..79639c0c2780113863fba63639934b5f4484e5e0 100755 (executable)
@@ -89,18 +89,11 @@ define('JSONP', 3, true);
     */\r
     public function genarateFeed()\r
     {\r
-        if ($this->version == RSS2) {\r
-//             header('Content-type: text/xml; charset=UTF-8');\r
-            // this line prevents Chrome 20 from prompting download\r
-            // used by Google: https://news.google.com/news/feeds?ned=us&topic=b&output=rss\r
-//             header('X-content-type-options: nosniff');\r
-        } elseif ($this->version == JSON) {\r
-//             header('Content-type: application/json; charset=UTF-8');\r
-            $this->json = new stdClass();\r
-        } elseif ($this->version == JSONP) {\r
-//             header('Content-type: application/javascript; charset=UTF-8');\r
-            $this->json = new stdClass();\r
-        }\r
+        header('Content-type: text/xml; charset=UTF-8');\r
+        // this line prevents Chrome 20 from prompting download\r
+        // used by Google: https://news.google.com/news/feeds?ned=us&topic=b&output=rss\r
+        header('X-content-type-options: nosniff');\r
+\r
         $this->printHead();\r
         $this->printChannels();\r
         $this->printItems();\r