diff --git a/src/RequestCreator.php b/src/RequestCreator.php index 7f3f094..49833ec 100644 --- a/src/RequestCreator.php +++ b/src/RequestCreator.php @@ -33,7 +33,7 @@ private static function createCustomRequest($get = [], $post = [], $attrs = [], $server = $_SERVER; } - $requestUri = $_SERVER['PATH_INFO']; + $requestUri = explode("?", $_SERVER['REQUEST_URI'])[0];; $requestQueryString = ''; if (count($get) > 0) { @@ -58,4 +58,4 @@ private static function createCustomRequest($get = [], $post = [], $attrs = [], return new Request($get, $post, $attrs, $cookies, $files, $server); } -} \ No newline at end of file +}