From 2e36448282e779d003a3495a217fab54bb7ea201 Mon Sep 17 00:00:00 2001 From: xl Date: Fri, 26 May 2023 11:23:21 +0800 Subject: [PATCH] qqq --- Handler/OnRequest.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Handler/OnRequest.php b/Handler/OnRequest.php index 4e32207..5ac89cf 100644 --- a/Handler/OnRequest.php +++ b/Handler/OnRequest.php @@ -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)) {