This commit is contained in:
2021-11-29 10:33:18 +08:00
parent 1d4554dbe7
commit 40c946b58e
+3
View File
@@ -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;
}