From 8106600dd70d7df8898f47c9e6bf40ecf1b06eb1 Mon Sep 17 00:00:00 2001 From: "as2252258@163.com" Date: Wed, 4 Aug 2021 01:23:55 +0800 Subject: [PATCH] modify --- Server/HTTPServerListener.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Server/HTTPServerListener.php b/Server/HTTPServerListener.php index f80f52dd..0b1497f2 100644 --- a/Server/HTTPServerListener.php +++ b/Server/HTTPServerListener.php @@ -92,10 +92,12 @@ class HTTPServerListener extends Abstracts\Server try { Context::setContext(Response::class, $response); - $this->router->dispatch(HSRequest::create($request)); +// $this->router->dispatch(HSRequest::create($request)); } catch (Error | Throwable $exception) { - $this->response->send(jTraceEx($exception), 500); +// $this->response->send(jTraceEx($exception), 500); } finally { + $response->status(200); + $response->end('ok'); $this->eventDispatch->dispatch(new OnAfterRequest()); } }