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