From: Andrew Dolgov Date: Sat, 12 Jan 2013 08:52:35 +0000 (+0400) Subject: api: use text/json content-type X-Git-Tag: 1.7.0~63 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=12f317822df08f4a6bb773ad0308f014fea1b6f7;p=tt-rss.git api: use text/json content-type --- diff --git a/classes/api.php b/classes/api.php index e3dce0c1..1f50ae37 100644 --- a/classes/api.php +++ b/classes/api.php @@ -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'));