This commit is contained in:
as2252258@163.com
2021-08-04 01:23:55 +08:00
parent 3f3027f09c
commit 8106600dd7
+4 -2
View File
@@ -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());
}
}