diff --git a/HttpServer/Events/OnRequest.php b/HttpServer/Events/OnRequest.php index b1547f4c..46cd8cf1 100644 --- a/HttpServer/Events/OnRequest.php +++ b/HttpServer/Events/OnRequest.php @@ -41,8 +41,8 @@ class OnRequest extends Callback if ($sRequest->is('favicon.ico')) { return $params = $sResponse->send($sRequest->isNotFound(), 200); } - register_shutdown_function(OnRequest::class . '::shutdown', $response); + register_shutdown_function(OnRequest::class . '::shutdown', $response); return $params = Snowflake::app()->getRouter()->dispatch(); } catch (Error | \Throwable $exception) { $params = $this->sendErrorMessage($sResponse ?? null, $exception, $response);