Skip to content

Commit d640fc6

Browse files
committed
BUGFIX: Fix ActionResponse to handle BufferStream
``` Cannot seek a BufferStream GuzzleHttp\Psr7\BufferStream::seek(0) GuzzleHttp\Psr7\BufferStream::rewind() Neos\Flow\Mvc\ActionResponse::getContent() Neos\FluidAdaptor\Core\Widget\AbstractWidgetViewHelper::initiateSubRequest( ```
1 parent df0a081 commit d640fc6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Neos.Flow/Classes/Mvc/ActionResponse.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,9 @@ public function getHttpHeader(string $headerName)
198198
public function getContent(): string
199199
{
200200
$content = $this->content->getContents();
201-
$this->content->rewind();
201+
if ($this->content->isSeekable()) {
202+
$this->content->rewind();
203+
}
202204
return $content;
203205
}
204206

0 commit comments

Comments
 (0)