This commit is contained in:
xl
2023-06-12 17:24:46 +08:00
parent 398b306199
commit a75690d91c
2 changed files with 3 additions and 3 deletions
+3
View File
@@ -215,6 +215,9 @@ class RouterCollector implements \ArrayAccess, \IteratorAggregate
if (!$this->methods->has($method)) {
return $this->default->get('handler');
}
if ($method === 'OPTIONS') {
$path = '/*';
}
$parent = $this->methods->get($method);
/** @var HashMap $parent */