[Mime] fixed wrong logic

This commit is contained in:
Fabien Potencier 2019-03-09 17:40:15 +01:00
parent 0e2ea87199
commit 836970c776

View File

@ -20,7 +20,9 @@ final class EightBitContentEncoder implements ContentEncoderInterface
{
public function encodeByteStream($stream, int $maxLineLength = 0): iterable
{
yield from $stream;
while (!feof($stream)) {
yield fread($stream, 16372);
}
}
public function getName(): string