diff --git a/index.php b/index.php index 9848cd3..3bdc6b9 100644 --- a/index.php +++ b/index.php @@ -176,6 +176,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; }