diff --git a/lib/private/Streamer.php b/lib/private/Streamer.php index 0e3018f77b7f7..6b5507cb9acdd 100644 --- a/lib/private/Streamer.php +++ b/lib/private/Streamer.php @@ -95,6 +95,7 @@ public function __construct(IRequest $request, int $size, int $numberOfFiles) { * @param string $name */ public function sendHeaders($name) { + header('X-Accel-Buffering: no'); $extension = $this->streamerInstance instanceof ZipStreamer ? '.zip' : '.tar'; $fullName = $name . $extension; $this->streamerInstance->sendHeaders($fullName); diff --git a/lib/private/legacy/OC_Files.php b/lib/private/legacy/OC_Files.php index addee2358dd2c..52dd7593738af 100644 --- a/lib/private/legacy/OC_Files.php +++ b/lib/private/legacy/OC_Files.php @@ -98,6 +98,7 @@ private static function sendHeaders($filename, $name, array $rangeArray) { } } header('Content-Type: '.$type, true); + header('X-Accel-Buffering: no'); } /**