diff --git a/src/Client.php b/src/Client.php index f9eacf2..5631032 100644 --- a/src/Client.php +++ b/src/Client.php @@ -59,6 +59,7 @@ public function request(string $method, string $uri, array $options = []) { $response = $this->client->request($method, $uri, $options); + $response->getBody()->rewind(); $contents = $response->getBody()->getContents(); // fallback to application/json as this is, apart from 1 call, the return type