From 3a1f15d9f0c76623a3a8913c8af6282c64f1e5f7 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Tue, 3 Aug 2021 00:57:02 +0800 Subject: [PATCH] modify --- Server/HTTPServerListener.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Server/HTTPServerListener.php b/Server/HTTPServerListener.php index 4e881f06..ee4688a8 100644 --- a/Server/HTTPServerListener.php +++ b/Server/HTTPServerListener.php @@ -98,16 +98,10 @@ class HTTPServerListener extends Abstracts\Server try { Context::setContext(Response::class, $response); -// $this->response->send('ok'); - - $result = 'ok'; -// $result = $this->router->dispatch(HSRequest::create($request)); + $this->router->dispatch(HSRequest::create($request)); } catch (Error | Throwable $exception) { $result = $this->router->exception($exception); - } finally { - $response->status(200); - $response->end(); -// $this->response->send($result); + $this->response->send($result); } }