Skip to content

Commit 36fe0b5

Browse files
committed
bug fix
1 parent cc47bc9 commit 36fe0b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/GuahanWeb/Http/router.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ public function route($method, $route, $handler) {
7777
foreach ($this->supported_methods as $m) {
7878
$this->route($m, $route, $handler);
7979
}
80-
} elseif (in_array($method, strtoupper($this->supported_methods))) {
80+
} elseif (in_array(strtoupper($method), $this->supported_methods)) {
8181
$this->routes[strtoupper($method)][$route] = $handler;
8282
} else {
8383
throw new RouterException(sprintf('Unsupported HTTP verb provided for route: %s', $method));

0 commit comments

Comments
 (0)