This commit is contained in:
as2252258@163.com
2021-07-03 15:57:56 +08:00
parent 968be07fbb
commit 1fad90e1e7
+1 -1
View File
@@ -37,7 +37,7 @@ class Router extends HttpService implements RouterInterface
const NOT_FOUND = 'Page not found or method not allowed.';
/** @var string[] */
public array $methods = ['get', 'post', 'options', 'put', 'delete', 'receive'];
public array $methods = ['get', 'post', 'options', 'put', 'delete', 'receive', 'head'];
public ?Closure $middleware = null;