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