From bbc4bda953e746ab5f83e141370ce61b15682738 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Sat, 18 Jul 2020 20:33:34 +0100 Subject: [PATCH 1/2] Fix the HTTP methods client --- composer.json | 2 +- src/HttpClient/Builder.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 40f52a827..bcf57c25b 100644 --- a/composer.json +++ b/composer.json @@ -26,7 +26,7 @@ "ext-json": "*", "ext-xml": "*", "php-http/cache-plugin": "^1.7", - "php-http/client-common": "^2.2", + "php-http/client-common": "^2.3", "php-http/discovery": "^1.9", "php-http/httplug": "^2.1", "php-http/multipart-stream-builder": "^1.1", diff --git a/src/HttpClient/Builder.php b/src/HttpClient/Builder.php index 7f5e7310a..b8a2ebefc 100644 --- a/src/HttpClient/Builder.php +++ b/src/HttpClient/Builder.php @@ -114,7 +114,8 @@ public function getHttpClient() $this->pluginClient = new HttpMethodsClient( (new PluginClientFactory())->createClient($this->httpClient, $plugins), - $this->requestFactory + $this->requestFactory, + $this->streamFactory ); } From 074457fff7c36bb76e47d0918fb71a82addde38a Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Sun, 19 Jul 2020 15:06:33 +0100 Subject: [PATCH 2/2] Update composer.json --- composer.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index bcf57c25b..df7de0de0 100644 --- a/composer.json +++ b/composer.json @@ -55,5 +55,7 @@ }, "config": { "preferred-install": "dist" - } + }, + "minimum-stability": "dev", + "prefer-stable": true }