diff --git a/index.php b/index.php index ee27721..5b01547 100644 --- a/index.php +++ b/index.php @@ -153,6 +153,7 @@ function get_absolute_path($path) { } function err($code,$msg) { + http_response_code($code); echo json_encode(['error' => ['code'=>intval($code), 'msg' => $msg]]); exit; }