diff --git a/src/ClientAbstracts.php b/src/ClientAbstracts.php index 08006e8..2b04498 100644 --- a/src/ClientAbstracts.php +++ b/src/ClientAbstracts.php @@ -67,6 +67,9 @@ abstract class ClientAbstracts implements IClient */ public function getBody(): string|ResponseInterface|null { + if ($this->body instanceof ResponseInterface) { + return $this->body->getBody()->getContents(); + } return $this->body; }