diff options
author | Andrew Dolgov <[email protected]> | 2013-01-12 12:52:35 +0400 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2013-01-12 12:52:35 +0400 |
commit | 12f317822df08f4a6bb773ad0308f014fea1b6f7 (patch) | |
tree | 7cb4d205c57839f4e5992aa27cc31ba44875fcf8 | |
parent | ba946ba276645e77f02a384a383a76ebd6bf4a6a (diff) |
api: use text/json content-type
-rw-r--r-- | classes/api.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/api.php b/classes/api.php index e3dce0c17..1f50ae37e 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')); |