commit 8843215a47de9bd52e310ecd37fbda0c8f52e6bd
parent d1001ea9131a7a372b52a687c53ff70c1edc7a45
Author: Florian Kaldowski <flokX@users.noreply.github.com>
Date: Wed, 11 Sep 2019 19:11:36 +0200
Set correct MIME-type
Diffstat:
1 file changed, 1 insertion(+), 0 deletions(-)
diff --git a/admin/index.php b/admin/index.php
@@ -33,6 +33,7 @@ if (isset($_GET["delete"]) || isset($_GET["add"])) {
}
file_put_contents($config_path, json_encode($config_content, JSON_PRETTY_PRINT));
file_put_contents($stats_path, json_encode($stats_content, JSON_PRETTY_PRINT));
+ header("Content-Type: application/json");
echo "{\"status\": \"successful\"}";
exit;
}