From 839b065860ae61b10061767d200b71090083f554 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 19 Sep 2012 15:54:55 +0400 Subject: api: remove unneeded stuff, add special header for android httpurlconnection which seems to be retarded --- classes/api.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'classes/api.php') 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; -- cgit v1.2.3-54-g00ecf