Skip to content

Commit 78bd379

Browse files
[HttpClient] fix Psr18Client when allow_url_fopen=0
1 parent 534bac2 commit 78bd379

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Response/StreamWrapper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ public static function createResource(ResponseInterface $response, HttpClientInt
5353
throw new \InvalidArgumentException(sprintf('Providing a client to "%s()" is required when the response doesn\'t have any "stream()" method.', __CLASS__));
5454
}
5555

56-
if (false === stream_wrapper_register('symfony', __CLASS__, \STREAM_IS_URL)) {
56+
if (false === stream_wrapper_register('symfony', __CLASS__)) {
5757
throw new \RuntimeException(error_get_last()['message'] ?? 'Registering the "symfony" stream wrapper failed.');
5858
}
5959

0 commit comments

Comments
 (0)