From c0030dc98afb0c3c65448c12d62d2c7e66739c47 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Thu, 27 Aug 2015 01:31:28 +0200 Subject: [PATCH] Revert PATH_INFO magic --- src/Http/RouterMiddleware.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Http/RouterMiddleware.php b/src/Http/RouterMiddleware.php index 92506209b..1bb27c8dc 100644 --- a/src/Http/RouterMiddleware.php +++ b/src/Http/RouterMiddleware.php @@ -49,9 +49,8 @@ class RouterMiddleware */ public function __invoke(Request $request, Response $response, callable $out = null) { - $serverParams = $request->getServerParams(); - $uri = array_get($serverParams, 'PATH_INFO', $request->getUri()->getPath()) ?: '/'; $method = $request->getMethod(); + $uri = $request->getUri()->getPath() ?: '/'; $routeInfo = $this->getDispatcher()->dispatch($method, $uri);