diff --git a/router.php b/router.php index 3dc2eff..db183b1 100644 --- a/router.php +++ b/router.php @@ -15,6 +15,8 @@ $method_path = realpath(__DIR__ . "/methods" . $request_uri . ".php"); +header("Content-Type: application/json; charset=utf-8"); + // make sure the path is valid if (strpos($method_path, __DIR__ . "/methods/") === FALSE) { error_message("not found", 404);