Add Content-Type: application/json header to API responses

This commit is contained in:
Guillermo Pages
2026-01-27 20:29:05 +01:00
parent 68bfb7fdbb
commit 075a8f68c4

View File

@@ -25,6 +25,7 @@ class Renderer
{ {
header(sprintf('HTTP/1.0 %s %s', $status, self::$statusMessages[$status])); header(sprintf('HTTP/1.0 %s %s', $status, self::$statusMessages[$status]));
header("Access-Control-Allow-Origin: *"); header("Access-Control-Allow-Origin: *");
header("Content-Type: application/json; charset=utf-8");
ob_clean(); ob_clean();
flush(); flush();