modify
This commit is contained in:
@@ -92,10 +92,12 @@ class HTTPServerListener extends Abstracts\Server
|
|||||||
try {
|
try {
|
||||||
Context::setContext(Response::class, $response);
|
Context::setContext(Response::class, $response);
|
||||||
|
|
||||||
$this->router->dispatch(HSRequest::create($request));
|
// $this->router->dispatch(HSRequest::create($request));
|
||||||
} catch (Error | Throwable $exception) {
|
} catch (Error | Throwable $exception) {
|
||||||
$this->response->send(jTraceEx($exception), 500);
|
// $this->response->send(jTraceEx($exception), 500);
|
||||||
} finally {
|
} finally {
|
||||||
|
$response->status(200);
|
||||||
|
$response->end('ok');
|
||||||
$this->eventDispatch->dispatch(new OnAfterRequest());
|
$this->eventDispatch->dispatch(new OnAfterRequest());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user