summaryrefslogtreecommitdiff
path: root/src/Router.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Router.php')
-rw-r--r--src/Router.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Router.php b/src/Router.php
index cda3006..ab0c37c 100644
--- a/src/Router.php
+++ b/src/Router.php
@@ -64,7 +64,7 @@ class Router
try {
$matcher = new UrlMatcher($this->routes, $context);
- $match = $matcher->matchRequest($request);
+ $match = $matcher->match(rtrim($request->getPathInfo(), "/"));
$class = $match["_controller"][0];
$method = $match["_controller"][1];