Skip to content

Commit

Permalink
prefer cloning a Illuminte\Http\Request with duplicate instead of cre…
Browse files Browse the repository at this point in the history
…ateFromBase (#42420)
  • Loading branch information
rodrigopedra authored May 18, 2022
1 parent 1eed68e commit ebe067c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Routing/CompiledRouteCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ public function match(Request $request)
*/
protected function requestWithoutTrailingSlash(Request $request)
{
$trimmedRequest = Request::createFromBase($request);
$trimmedRequest = $request->duplicate();

$parts = explode('?', $request->server->get('REQUEST_URI'), 2);

Expand Down

0 comments on commit ebe067c

Please sign in to comment.