From d1091223cfca35b375988b92c2762eb2d2264340 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Sat, 18 Jul 2020 20:45:55 +0100 Subject: [PATCH 1/3] Fix broken HttpMethodsClient with PSR RequestFactory --- composer.json | 2 +- src/HttpClient/Builder.php | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/composer.json b/composer.json index 9327935..97d2fcb 100644 --- a/composer.json +++ b/composer.json @@ -12,7 +12,7 @@ "require": { "php": "^7.1.3", "ext-json": "*", - "php-http/client-common": "^2.2", + "php-http/client-common": "^2.3", "php-http/cache-plugin": "^1.7", "php-http/discovery": "^1.9", "php-http/httplug": "^2.1", diff --git a/src/HttpClient/Builder.php b/src/HttpClient/Builder.php index 561f06f..593c340 100644 --- a/src/HttpClient/Builder.php +++ b/src/HttpClient/Builder.php @@ -111,7 +111,8 @@ public function getHttpClient() $this->pluginClient = new HttpMethodsClient( (new PluginClientFactory())->createClient($this->httpClient, $plugins), - $this->requestFactory + $this->requestFactory, + $this->streamFactory ); } From 831c6ffca891e0612fcdcd91b5d74070dd90dc8b Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Sun, 19 Jul 2020 15:07:10 +0100 Subject: [PATCH 2/3] Update composer.json --- composer.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 97d2fcb..ca9a096 100644 --- a/composer.json +++ b/composer.json @@ -41,5 +41,7 @@ }, "config": { "preferred-install": "dist" - } + }, + "minimum-stability": "dev", + "prefer-stable": true } From 5691e18139d64e9193216a1ee314062f9ec1c894 Mon Sep 17 00:00:00 2001 From: Graham Campbell Date: Sun, 19 Jul 2020 15:08:33 +0100 Subject: [PATCH 3/3] Update CHANGELOG.md --- CHANGELOG.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index de99a9d..10a4a45 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ CHANGE LOG ========== +## V3.0.1 (UPCOMING) + +* Fix HTTP methods client headers and body + + ## V3.0 (11/07/2020) * Use PSR-7, PSR-17 and PSR-18 only