summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWolfy-J <[email protected]>2018-10-13 11:02:03 +0300
committerWolfy-J <[email protected]>2018-10-13 11:02:03 +0300
commit45531ae427ac4120991d2f0ddc79b8b776a07b37 (patch)
treeace79f46bc46252337b2a663e0c38990b22c4797
parent1166830f80b2f86acdc75c789a1996a021442441 (diff)
pre-release activitiesv1.2.5
-rw-r--r--CHANGELOG.md1
-rw-r--r--src/PSR7Client.php1
2 files changed, 2 insertions, 0 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 6c5d9d20..6171a258 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -5,6 +5,7 @@ v1.2.5 (13.10.2018)
------
- decoupled from Zend Diactoros via PSR-17 factory (by @1ma)
- `Verbose` flag for cli renamed to `verbose` (by @ruudk)
+- bugfix: HTTP protocol version mismatch on PHP end
v1.2.4 (30.09.2018)
------
diff --git a/src/PSR7Client.php b/src/PSR7Client.php
index 494342fa..1ce5baed 100644
--- a/src/PSR7Client.php
+++ b/src/PSR7Client.php
@@ -84,6 +84,7 @@ class PSR7Client
parse_str($ctx['rawQuery'], $query);
$request = $request
+ ->withProtocolVersion(substr($ctx['protocol'], 5))
->withCookieParams($ctx['cookies'])
->withQueryParams($query)
->withUploadedFiles($this->wrapUploads($ctx['uploads']));