Also register HEAD for GET routes

pull/555/head
Belle Aerni 10 months ago
parent 4f52e1acc0
commit 296c9b57d5

@ -107,6 +107,10 @@ class Router
$methods = explode('|', $method);
}
if (in_array('GET', $methods) && !in_array('HEAD', $methods)) {
$methods[] = 'HEAD';
}
// And this finishes it off.
if ($this->group_prefix !== '') {
$url = rtrim($this->group_prefix . $url);

Loading…
Cancel
Save