]> jfr.im git - irc/unrealircd/unrealircd-webpanel.git/blobdiff - api/common_api.php
Move extra header where it should be
[irc/unrealircd/unrealircd-webpanel.git] / api / common_api.php
index ccb1442636ee4423865b82f20bbe67a8015ab7a6..b29e2826d010b024aa56eff96d8cd993ef6932b7 100644 (file)
@@ -23,6 +23,7 @@ if (str_contains($_SERVER['SERVER_SOFTWARE'], 'Apache') &&
 // Only now make the connection (this can take a short while)
 include "../inc/connection.php";
 
+header("Content-type: application/json; charset=utf-8");
 // Server Side Events
 if (!defined('NO_EVENT_STREAM_HEADER'))
        header('Content-Type: text/event-stream');