We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f629977 commit 35cf979Copy full SHA for 35cf979
src/Illuminate/Http/Client/Response.php
@@ -99,10 +99,9 @@ public function stream(int $chuckLength = 1): Generator
99
*/
100
public function streamLines(int $chunkLength = 1, string $separator = "\n"): Generator
101
{
102
- $length = max($chunkLength, mb_strlen($separator));
103
$buffer = '';
104
105
- foreach ($this->stream($length) as $chunk) {
+ foreach ($this->stream($chunkLength) as $chunk) {
106
$buffer .= $chunk;
107
108
while (($pos = strpos($buffer, $separator)) !== false) {
0 commit comments