This commit is contained in:
2020-09-07 17:39:51 +08:00
parent ab66641310
commit c5c716f6e5
2 changed files with 3 additions and 2 deletions
+3
View File
@@ -439,6 +439,9 @@ class Router extends Application implements RouterInterface
}
$methods = $this->nodes[$method];
$uri = ltrim($request->headers->getHeader('request_uri'), '/');
if (empty($uri)) {
$uri = '/';
}
if (!isset($methods[$uri])) {
if ($request->isOption) {
return $this->search_options($request);