Skip to content
Snippets Groups Projects
Commit 12f31782 authored by Andrew Dolgov's avatar Andrew Dolgov
Browse files

api: use text/json content-type

parent ba946ba2
No related branches found
No related tags found
No related merge requests found
......@@ -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'));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment