diff options
Diffstat (limited to 'classes/API.php')
| -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 e1d4de214..03f5a2502 100644 --- a/classes/API.php +++ b/classes/API.php @@ -30,7 +30,7 @@ class API extends Handler { function before(string $method): bool { if (parent::before($method)) { - header("Content-Type: text/json"); + header("Content-Type: application/json"); if (empty($_SESSION["uid"]) && $method != "login" && $method != "isloggedin") { $this->_wrap(self::STATUS_ERR, array("error" => self::E_NOT_LOGGED_IN)); |