MAPG-166 response to HEAD request with the GET content

This commit is contained in:
bence committed 2020-06-23 15:26:53 +02:00
1 parent 05b1a84168
commit 787427b211
1 file changed
+5
+5
View File
@@ -45,6 +45,11 @@ class RouteCollection
{ {
$groupNumber = count($uri); $groupNumber = count($uri);
// response to HEAD request with the GET content
if ($method === 'head') {
$method = 'get';
}
if (!isset($this->searchTable[$method][$groupNumber])) { if (!isset($this->searchTable[$method][$groupNumber])) {
return null; return null;
} }