diff --git a/src/Routing/RouteCollection.php b/src/Routing/RouteCollection.php index d93007a..1430002 100644 --- a/src/Routing/RouteCollection.php +++ b/src/Routing/RouteCollection.php @@ -45,6 +45,11 @@ class RouteCollection { $groupNumber = count($uri); + // response to HEAD request with the GET content + if ($method === 'head') { + $method = 'get'; + } + if (!isset($this->searchTable[$method][$groupNumber])) { return null; }