Skip to content

Commit 2911def

Browse files
author
Zachary He
committed
forgot to update method
1 parent c350158 commit 2911def

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/Transformers/Response.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,16 +127,17 @@ protected function sendContent()
127127
$this->swooleResponse->sendfile($illuminateResponse->getFile()->getPathname());
128128
} else {
129129
$chunkGzip = $this->canGzipContent($illuminateResponse->headers->get('Content-Encoding'));
130-
$this->sendInChunk($illuminateResponse->getContent());
130+
$this->sendInChunk($illuminateResponse->getContent(), $chunkGzip);
131131
}
132132
}
133133

134134
/**
135135
* Send content in chunk
136136
*
137137
* @param string $content
138+
* @param bool $chunkGzip
138139
*/
139-
protected function sendInChunk($content)
140+
protected function sendInChunk($content, $chunkGzip)
140141
{
141142
if (strlen($content) <= static::CHUNK_SIZE) {
142143
$this->swooleResponse->end($content);

0 commit comments

Comments
 (0)