Skip to content

Commit

Permalink
Merge pull request #85 from bwaidelich/84-bubble-response-headers
Browse files Browse the repository at this point in the history
BUGFIX: Don't ignore response headers when rendering a form
  • Loading branch information
Bastian Waidelich committed Oct 19, 2018
2 parents e9b4df7 + cf623a3 commit 4e55a9d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Classes/Core/Runtime/FormRuntime.php
Original file line number Diff line number Diff line change
Expand Up @@ -338,6 +338,12 @@ public function render()
{
if ($this->isAfterLastPage()) {
$this->invokeFinishers();
$parentResponse = $this->response->getParentResponse();
if ($parentResponse !== null) {
foreach ($this->response->getHeaders()->getAll() as $key => $value) {
$parentResponse->getHeaders()->set($key, $value, true);
}
}
return $this->response->getContent();
}

Expand Down

0 comments on commit 4e55a9d

Please sign in to comment.