This commit is contained in:
xl
2023-05-26 11:23:21 +08:00
parent b027823e54
commit 2e36448282
+1 -2
View File
@@ -86,8 +86,7 @@ class OnRequest implements OnRequestInterface
/** @var ConstrictRequest $PsrRequest */
$PsrRequest = $this->initPsr7RequestAndPsr7Response($request);
$request_uri = $PsrRequest->getMethod() == 'OPTIONS' ? '/*' : $PsrRequest->getUri()->getPath();
$dispatcher = $this->router->query($request_uri, $PsrRequest->getMethod());
$dispatcher = $this->router->query($PsrRequest->getUri()->getPath(), $PsrRequest->getMethod());
$middleware = [];
if (!($dispatcher instanceof Kiri\Router\Base\NotFoundController)) {