Revert PATH_INFO magic

This commit is contained in:
Franz Liedke 2015-08-27 01:31:28 +02:00
parent 690df87ad0
commit c0030dc98a

View File

@ -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);