Skip to content

Commit 35cf979

Browse files
committed
Remove obsolete length change
1 parent f629977 commit 35cf979

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/Illuminate/Http/Client/Response.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,10 +99,9 @@ public function stream(int $chuckLength = 1): Generator
9999
*/
100100
public function streamLines(int $chunkLength = 1, string $separator = "\n"): Generator
101101
{
102-
$length = max($chunkLength, mb_strlen($separator));
103102
$buffer = '';
104103

105-
foreach ($this->stream($length) as $chunk) {
104+
foreach ($this->stream($chunkLength) as $chunk) {
106105
$buffer .= $chunk;
107106

108107
while (($pos = strpos($buffer, $separator)) !== false) {

0 commit comments

Comments
 (0)