Skip to content

Commit

Permalink
Revert "[6.x] Fix memory usage on downloading large files (#31163)" (#…
Browse files Browse the repository at this point in the history
…31587)

This reverts commit f239c07.
  • Loading branch information
taylorotwell authored Feb 25, 2020
1 parent 87ab221 commit 1cb158c
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Illuminate/Filesystem/FilesystemAdapter.php
Original file line number Diff line number Diff line change
Expand Up @@ -163,11 +163,7 @@ public function response($path, $name = null, array $headers = [], $disposition

$response->setCallback(function () use ($path) {
$stream = $this->readStream($path);

while (! feof($stream)) {
echo fread($stream, 2048);
}

fpassthru($stream);
fclose($stream);
});

Expand Down

0 comments on commit 1cb158c

Please sign in to comment.