MAPG-166 response to HEAD request with the GET content
This commit is contained in:
parent
05b1a84168
commit
787427b211
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user