From 62900e7f81545911f4fe8d08bcacf48d64bf8fef Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Sun, 29 Sep 2019 15:00:28 +0200 Subject: [PATCH] Correct JSON media type. --- controllers/JSONController.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/controllers/JSONController.php b/controllers/JSONController.php index 2b787cc2..457f9290 100644 --- a/controllers/JSONController.php +++ b/controllers/JSONController.php @@ -3,19 +3,16 @@ * JSONController.php * Contains the key JSON controller * - * Kabuki CMS (C) 2013-2015, Aaron van Geffen + * Kabuki CMS (C) 2013-2019, Aaron van Geffen *****************************************************************************/ -/** - * The abstract class that allows easy creation of json replies. - */ class JSONController { protected $payload; public function showContent() { - header('Content-Type: text/json; charset=utf-8'); + header('Content-Type: application/json; charset=utf-8'); echo json_encode($this->payload); } }