diff --git a/index.php b/index.php index 7532d56..9a06916 100644 --- a/index.php +++ b/index.php @@ -160,6 +160,7 @@ function get_absolute_path($path) { function err($code,$msg) { http_response_code($code); + header("Content-Type: application/json"); echo json_encode(['error' => ['code'=>intval($code), 'msg' => $msg]]); exit; }