modify
This commit is contained in:
@@ -112,6 +112,7 @@ class HTTPServerListener extends Abstracts\Server
|
|||||||
$sResponse->send($node->dispatch(), 200);
|
$sResponse->send($node->dispatch(), 200);
|
||||||
}
|
}
|
||||||
} catch (Error | Throwable $exception) {
|
} catch (Error | Throwable $exception) {
|
||||||
|
var_dump($exception->getMessage());
|
||||||
$sResponse->addHeader('Content-Type', 'text/html; charset=utf-8');
|
$sResponse->addHeader('Content-Type', 'text/html; charset=utf-8');
|
||||||
$sResponse->send($exception->getMessage(),
|
$sResponse->send($exception->getMessage(),
|
||||||
$exception->getCode() == 0 ? 500 : $exception->getCode());
|
$exception->getCode() == 0 ? 500 : $exception->getCode());
|
||||||
|
|||||||
Reference in New Issue
Block a user