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