Browse Source

Update reverse route matching to default to GET.

Brian Porter 7 years ago
parent
commit
1085ced35f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/Routing/Route/Route.php

+ 1 - 1
src/Routing/Route/Route.php

@@ -769,7 +769,7 @@ class Route
             $url['_method'] = $url['[method]'];
         }
         if (empty($url['_method'])) {
-            return false;
+            $url['_method'] = 'GET';
         }
         $methods = array_map('strtoupper', (array)$url['_method']);
         foreach ($methods as $value) {