diff --git a/src/Illuminate/Filesystem/FilesystemAdapter.php b/src/Illuminate/Filesystem/FilesystemAdapter.php index 8057b219c8ae..f5eb6bfba074 100644 --- a/src/Illuminate/Filesystem/FilesystemAdapter.php +++ b/src/Illuminate/Filesystem/FilesystemAdapter.php @@ -162,7 +162,11 @@ public function response($path, $name = null, array $headers = [], $disposition $response->setCallback(function () use ($path) { $stream = $this->readStream($path); - fpassthru($stream); + + while (! feof($stream)) { + echo fread($stream, 2048); + } + fclose($stream); });