Skip to content

Commit

Permalink
add the nginx buffering header here
Browse files Browse the repository at this point in the history
  • Loading branch information
jszobody committed Jul 9, 2024
1 parent 6d87682 commit 66a525c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Builder.php
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ public function process(): int
if ($this->canPredictZipSize()) {
$size = $zip->finish();
header('Content-Length: '.$size);
header('X-Accel-Buffering: no');

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

Expand Down

0 comments on commit 66a525c

Please sign in to comment.