Skip to content

Commit 92c8eb3

Browse files
committed
Fixes response decoder
1 parent 2b1d9ee commit 92c8eb3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Service/Decoder/ResponseDecoder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function getDecodedResponse(Request $request)
4343
{
4444
try {
4545
$response = $this->client->sendRequest($request);
46-
$decodedResponse = json_decode($response->getBody(), true);
46+
$decodedResponse = json_decode($response->getBody()->getContents(), true);
4747

4848
if(!in_array($response->getStatusCode(), range(200, 299))) {
4949
if ($this->cacheEndpoint && $this->cache->has($this->getCacheId($request))) {
@@ -83,4 +83,4 @@ private function getCacheId(Request $request)
8383
)
8484
);
8585
}
86-
}
86+
}

0 commit comments

Comments
 (0)