Fix redirect helper.

This commit is contained in:
Franz Liedke 2015-06-03 03:35:30 +02:00
parent 79480242a7
commit 2ba7a2044b

View File

@ -44,6 +44,9 @@ abstract class Action
</body>
</html>', 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;
}
}