Skip to content

Commit c7b5bc9

Browse files
committed
Return a HttpBodyStream for streaming responses to match upstream implementation
1 parent 7e240e1 commit c7b5bc9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Browser.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
use GuzzleHttp\Psr7\Utils;
1010
use Psr\Http\Message\ResponseInterface;
1111
use React\EventLoop;
12-
use React\Http\Io\ReadableBodyStream;
12+
use React\Http\Io\HttpBodyStream;
1313
use React\Http\Message\ResponseException;
1414
use React\Promise;
1515
use React\Promise\Deferred;
@@ -623,7 +623,7 @@ private function constructResponseFromCurl(CurlHandle $curl, string $rawHeaders,
623623
}
624624

625625
if ($body instanceof ThroughStream) {
626-
$body = new ReadableBodyStream($body, $length);
626+
$body = new HttpBodyStream($body, $length);
627627
}
628628

629629
$httpVersion = match(curl_getinfo($curl, CURLINFO_HTTP_VERSION)) {

0 commit comments

Comments
 (0)