summaryrefslogtreecommitdiff
path: root/classes/api.php
diff options
context:
space:
mode:
Diffstat (limited to 'classes/api.php')
-rw-r--r--classes/api.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/classes/api.php b/classes/api.php
index 801f99566..028cbf929 100644
--- a/classes/api.php
+++ b/classes/api.php
@@ -11,6 +11,7 @@ class API extends Handler {
function before($method) {
if (parent::before($method)) {
+ header("Content-Type: text/plain");
if (!$_SESSION["uid"] && $method != "login" && $method != "isloggedin") {
print $this->wrap(self::STATUS_ERR, array("error" => 'NOT_LOGGED_IN'));
@@ -24,7 +25,6 @@ class API extends Handler {
$this->seq = (int) $_REQUEST['seq'];
- header("Content-Type: text/plain");
return true;
}
return false;