diff --git a/system/Router/Router.php b/system/Router/Router.php index 7dfb14ccb3fa..01e8a940e2c7 100644 --- a/system/Router/Router.php +++ b/system/Router/Router.php @@ -145,7 +145,7 @@ public function __construct(RouteCollectionInterface $routes, Request $request = $this->controller = $this->collection->getDefaultController(); $this->method = $this->collection->getDefaultMethod(); - $this->collection->setHTTPVerb($request->getMethod() ?? 'get'); + $this->collection->setHTTPVerb($request->getMethod() ?? strtolower($_SERVER['REQUEST_METHOD'])); } //--------------------------------------------------------------------