This commit is contained in:
as2252258@163.com
2021-08-03 00:57:02 +08:00
parent e0ebeb8974
commit 3a1f15d9f0
+2 -8
View File
@@ -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);
}
}