From c033ce1f8fd4d84af6df2803372bdf727ebaf5e3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Wed, 9 Sep 2020 11:29:11 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- HttpServer/Events/OnRequest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);