We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e91a283 commit 5471aa2Copy full SHA for 5471aa2
2 files changed
CHANGELOG.md
@@ -6,4 +6,8 @@
6
7
## `1.0.1` at `2021-05-29`
8
9
-* Fix `json_decode()` as associative array at `Request::call()` method.
+* Fix `json_decode()` as associative array at `Request::call()` method.
10
+
11
+## `1.0.2` at `2021-05-29`
12
13
+* Fix response error at `Request::call()` method.
src/Request.php
@@ -594,7 +594,7 @@ public function call ()
594
// Invalid response
595
if ( $response_info['http_code'] < 200 || $response_info['http_code'] >= 300 )
596
{
597
- $data = \json_decode( $http_body, true );
+ $data = \json_decode( $http_body );
598
599
// Cannot decode json, restore raw body
600
if ( \json_last_error() > 0 )
0 commit comments