Skip to content

Commit

Permalink
BUGFIX: Fix ActionResponse to handle BufferStream
Browse files Browse the repository at this point in the history
```
Cannot seek a BufferStream

GuzzleHttp\Psr7\BufferStream::seek(0)
GuzzleHttp\Psr7\BufferStream::rewind()
Neos\Flow\Mvc\ActionResponse::getContent()
Neos\FluidAdaptor\Core\Widget\AbstractWidgetViewHelper::initiateSubRequest(
```
  • Loading branch information
mhsdesign committed Mar 16, 2024
1 parent df0a081 commit d640fc6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Neos.Flow/Classes/Mvc/ActionResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,9 @@ public function getHttpHeader(string $headerName)
public function getContent(): string
{
$content = $this->content->getContents();
$this->content->rewind();
if ($this->content->isSeekable()) {
$this->content->rewind();
}
return $content;
}

Expand Down

0 comments on commit d640fc6

Please sign in to comment.