mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-18 16:01:29 +00:00
api: use text/json content-type
This commit is contained in:
@@ -11,7 +11,7 @@ class API extends Handler {
|
|||||||
|
|
||||||
function before($method) {
|
function before($method) {
|
||||||
if (parent::before($method)) {
|
if (parent::before($method)) {
|
||||||
header("Content-Type: text/plain");
|
header("Content-Type: text/json");
|
||||||
|
|
||||||
if (!$_SESSION["uid"] && $method != "login" && $method != "isloggedin") {
|
if (!$_SESSION["uid"] && $method != "login" && $method != "isloggedin") {
|
||||||
print $this->wrap(self::STATUS_ERR, array("error" => 'NOT_LOGGED_IN'));
|
print $this->wrap(self::STATUS_ERR, array("error" => 'NOT_LOGGED_IN'));
|
||||||
|
|||||||
Reference in New Issue
Block a user