summaryrefslogtreecommitdiff
path: root/classes/API.php
diff options
context:
space:
mode:
authorAndrew Dolgov <fox@fakecake.org>2025-06-03 16:57:15 +0300
committerAndrew Dolgov <fox@fakecake.org>2025-06-03 16:57:15 +0300
commit87fb1de91dda98c3deeb89b2c58548d5d8c4faf6 (patch)
treefcc415f1ad6eaa94f8be2e3fe3a0c8c178f6abfe /classes/API.php
parent20950525216a45565953004f785ebbcbdded31b9 (diff)
parent34c7e11d84059136ac8f526a6e179b29e62c6025 (diff)
Merge branch 'feature/json-mime-type' into 'master'
Use the official JSON MIME type of 'application/json' See merge request tt-rss/tt-rss!146
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 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));