From 07ef273d1b4648493c62eece6733f94b2920de11 Mon Sep 17 00:00:00 2001 From: Franz Liedke Date: Wed, 3 Jun 2015 03:35:30 +0200 Subject: [PATCH] Fix redirect helper. --- framework/core/src/Support/Action.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; } }