summaryrefslogtreecommitdiff
path: root/classes
diff options
context:
space:
mode:
authorAndrew Dolgov <[email protected]>2012-09-19 15:54:55 +0400
committerAndrew Dolgov <[email protected]>2012-09-19 15:54:55 +0400
commit839b065860ae61b10061767d200b71090083f554 (patch)
tree87d386e2cca90bfdf5fa495e19f694d5cc408915 /classes
parent964f1533719ea43a5075c08dd227a01a47f5b2aa (diff)
api: remove unneeded stuff, add special header for android httpurlconnection which seems to be retarded
Diffstat (limited to 'classes')
-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;