Skip to content

Commit

Permalink
Update reverse route matching to default to GET.
Browse files Browse the repository at this point in the history
  • Loading branch information
beporter committed Sep 21, 2018
1 parent 508f3be commit 1085ced
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Routing/Route/Route.php
Expand Up @@ -769,7 +769,7 @@ protected function _matchMethod($url)
$url['_method'] = $url['[method]'];
}
if (empty($url['_method'])) {
return false;
$url['_method'] = 'GET';
}
$methods = array_map('strtoupper', (array)$url['_method']);
foreach ($methods as $value) {
Expand Down

0 comments on commit 1085ced

Please sign in to comment.