We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2b1d9ee commit 92c8eb3Copy full SHA for 92c8eb3
src/Service/Decoder/ResponseDecoder.php
@@ -43,7 +43,7 @@ public function getDecodedResponse(Request $request)
43
{
44
try {
45
$response = $this->client->sendRequest($request);
46
- $decodedResponse = json_decode($response->getBody(), true);
+ $decodedResponse = json_decode($response->getBody()->getContents(), true);
47
48
if(!in_array($response->getStatusCode(), range(200, 299))) {
49
if ($this->cacheEndpoint && $this->cache->has($this->getCacheId($request))) {
@@ -83,4 +83,4 @@ private function getCacheId(Request $request)
83
)
84
);
85
}
86
-}
+}
0 commit comments