]> git.wh0rd.org Git - tt-rss.git/commitdiff
api: use text/json content-type
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 12 Jan 2013 08:52:35 +0000 (12:52 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sat, 12 Jan 2013 08:52:35 +0000 (12:52 +0400)
classes/api.php

index e3dce0c174078c61ed0593c8466f2eb5905f2a93..1f50ae37e2e54d063d8e8577205d2cd29af67fc7 100644 (file)
@@ -11,7 +11,7 @@ class API extends Handler {
 
        function before($method) {
                if (parent::before($method)) {
-                       header("Content-Type: text/plain");
+                       header("Content-Type: text/json");
 
                        if (!$_SESSION["uid"] && $method != "login" && $method != "isloggedin") {
                                print $this->wrap(self::STATUS_ERR, array("error" => 'NOT_LOGGED_IN'));