Skip to content

Commit 66a525c

Browse files
committed
add the nginx buffering header here
1 parent 6d87682 commit 66a525c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Builder.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,7 @@ public function process(): int
161161
if ($this->canPredictZipSize()) {
162162
$size = $zip->finish();
163163
header('Content-Length: '.$size);
164+
header('X-Accel-Buffering: no');
164165

165166
event(new ZipStreaming($this, $zip, $size));
166167

0 commit comments

Comments
 (0)