MAPG-166 response to HEAD request with the GET content

This commit is contained in:
Bence Pőcze 2020-06-23 15:23:33 +02:00
parent 05b1a84168
commit 787427b211

View File

@ -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;
}