mirror of
https://github.com/flarum/framework.git
synced 2024-11-25 09:35:01 +08:00
Revert PATH_INFO magic
This commit is contained in:
parent
690df87ad0
commit
c0030dc98a
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user