This commit is contained in:
2021-09-24 18:24:46 +08:00
parent bc16f47f4f
commit 49f2d624ba
2 changed files with 4 additions and 3 deletions
+1 -1
View File
@@ -114,7 +114,7 @@ class Http implements OnCloseInterface, OnConnectInterface, OnRequestInterface
{
$middlewares = MiddlewareManager::get($handler->callback);
$dispatcher = new Dispatcher($handler, empty($middlewares) ? null : new Iterator($middlewares));
$dispatcher = new Dispatcher($handler, $middlewares);
return $dispatcher->handle($PsrRequest);
}