diff --git a/HttpServer/Http/Request.php b/HttpServer/Http/Request.php index 2591b81f..36100d77 100644 --- a/HttpServer/Http/Request.php +++ b/HttpServer/Http/Request.php @@ -445,7 +445,7 @@ class Request extends HttpService */ public function dispatch(): mixed { - return $this->is('favicon.ico') ? \send(null) : \router(); + return $this->is('favicon.ico') ? \send(null) : \router()->dispatch(); }