diff --git a/src/Encoding/FilteredStream.php b/src/Encoding/FilteredStream.php index 4b296ed..7ac4b75 100644 --- a/src/Encoding/FilteredStream.php +++ b/src/Encoding/FilteredStream.php @@ -151,6 +151,10 @@ public function getSize() */ public function __toString() { + if ($this->stream->isSeekable()) { + $this->stream->rewind(); + } + return $this->getContents(); }