File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments