mirror of
https://github.com/filegator/filegator.git
synced 2025-07-31 03:40:18 +02:00
ob_flush fixes #326
This commit is contained in:
@@ -58,7 +58,7 @@ class DownloadController
|
||||
if ($file['stream']) {
|
||||
while (! feof($file['stream'])) {
|
||||
echo fread($file['stream'], 1024 * 8);
|
||||
ob_flush();
|
||||
if (ob_get_level() > 0) {ob_flush();}
|
||||
flush();
|
||||
}
|
||||
fclose($file['stream']);
|
||||
@@ -150,7 +150,7 @@ class DownloadController
|
||||
if ($file['stream']) {
|
||||
while (! feof($file['stream'])) {
|
||||
echo fread($file['stream'], 1024 * 8);
|
||||
ob_flush();
|
||||
if (ob_get_level() > 0) {ob_flush();}
|
||||
flush();
|
||||
}
|
||||
fclose($file['stream']);
|
||||
|
Reference in New Issue
Block a user