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); } }