This commit is contained in:
2023-04-03 11:08:11 +08:00
parent 709e35f4dc
commit 7d574e9172
2 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -135,7 +135,7 @@ class Server extends Component implements OnHandshakeInterface, OnMessageInterfa
{
try {
/** @var \Kiri\Message\Response $psrResponse */
$psrResponse = Context::setContext(ResponseInterface::class, new \Kiri\Message\Response());
$psrResponse = Context::set(ResponseInterface::class, new \Kiri\Message\Response());
$handler = $this->router->find('/', 'GET');
if (is_integer($handler)) {