From 1d59cf17454e296ec0fecf9e6f6244cf66dcd848 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 19 Apr 2021 16:16:58 +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/OnHandshake.php | 4 +--- HttpServer/Http/Request.php | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/HttpServer/Events/OnHandshake.php b/HttpServer/Events/OnHandshake.php index f9e243c3..6898e582 100644 --- a/HttpServer/Events/OnHandshake.php +++ b/HttpServer/Events/OnHandshake.php @@ -122,9 +122,7 @@ class OnHandshake extends Callback private function execute(SRequest $request, SResponse $response): mixed { $this->resolveParse($request, $response); - if (isset($request->get['debug']) && $request->get['debug'] == 'test') { - return $this->connect($response, 101); - } + $router = Snowflake::app()->getRouter(); /** @var Request $sRequest */ diff --git a/HttpServer/Http/Request.php b/HttpServer/Http/Request.php index 719543d7..403eeb15 100644 --- a/HttpServer/Http/Request.php +++ b/HttpServer/Http/Request.php @@ -102,7 +102,7 @@ class Request extends HttpService /** * @return int */ - public function getClientId() + public function getClientId(): int { return $this->fd; }