From ae9ca671d1585dd9243403e90d28bb67db42d7e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mr=C2=B7x?= Date: Mon, 6 Sep 2021 17:23:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E5=90=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- http-helper/Route/Router.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/http-helper/Route/Router.php b/http-helper/Route/Router.php index 0c61371f..d321c7d2 100644 --- a/http-helper/Route/Router.php +++ b/http-helper/Route/Router.php @@ -503,14 +503,14 @@ class Router extends HttpService implements RouterInterface public function Branch_search(RequestInterface $request): ?Node { $uri = $request->getUri(); - if ($request->isMethod('OPTIONS')) { - $node = $this->tree_search(['*']); - if (!($node instanceof Node)) { - $node = $this->tree_search($uri->getExplode()); - } - } else { - $node = $this->tree_search($uri->getExplode()); - } +// if ($request->isMethod('OPTIONS')) { +// $node = $this->tree_search(['*']); +// if (!($node instanceof Node)) { +// $node = $this->tree_search($uri->getExplode()); +// } +// } else { +// } + $node = $this->tree_search($uri->getExplode()); if (!($node instanceof Node)) { return null; }