Skip to content
This repository was archived by the owner on Mar 24, 2025. It is now read-only.

Commit c350158

Browse files
author
Zachary He
committed
add condition in
1 parent cd50a39 commit c350158

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Transformers/Response.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ protected function sendContent()
126126
} elseif ($illuminateResponse instanceof BinaryFileResponse) {
127127
$this->swooleResponse->sendfile($illuminateResponse->getFile()->getPathname());
128128
} else {
129+
$chunkGzip = $this->canGzipContent($illuminateResponse->headers->get('Content-Encoding'));
129130
$this->sendInChunk($illuminateResponse->getContent());
130131
}
131132
}

0 commit comments

Comments
 (0)