diff --git a/framework/core/src/Support/Action.php b/framework/core/src/Support/Action.php index 419be1a95..eff29c0f8 100644 --- a/framework/core/src/Support/Action.php +++ b/framework/core/src/Support/Action.php @@ -44,6 +44,9 @@ abstract class Action ', htmlspecialchars($url, ENT_QUOTES, 'UTF-8')); - return new Response($content, 302, ['location' => $url]); + $response = new Response('php://memory', 302, ['location' => $url]); + $response->getBody()->write($content); + + return $response; } }