diff --git a/src/RequestBody.php b/src/RequestBody.php index 38b6a0b..36a7559 100644 --- a/src/RequestBody.php +++ b/src/RequestBody.php @@ -51,7 +51,7 @@ public function __construct($contents, $encoding = '8bit') case 'object': case 'array': - $str = json_encode(json_encode($contents); + $str = json_encode(json_encode($contents)); break; case 'boolean':