Skip to content

Commit 1661857

Browse files
Create new Json ParameterBag Instance when cloning Request (#44671)
1 parent fd3fe72 commit 1661857

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Illuminate/Http/Request.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -456,7 +456,7 @@ public static function createFrom(self $from, $to = null)
456456

457457
$request->setDefaultRequestLocale($from->getDefaultLocale());
458458

459-
$request->setJson($from->json());
459+
$request->setJson(clone $from->json());
460460

461461
if ($from->hasSession() && $session = $from->session()) {
462462
$request->setLaravelSession($session);

0 commit comments

Comments
 (0)