diff --git a/composer.json b/composer.json index ab55d86..b7d5407 100644 --- a/composer.json +++ b/composer.json @@ -20,6 +20,6 @@ "php": ">=5.5.9", "ext-curl": "*" }, - "version": "1.0.12", + "version": "1.0.13", "minimum-stability": "dev" } diff --git a/src/Client.php b/src/Client.php index 1ad0eba..a6cee50 100644 --- a/src/Client.php +++ b/src/Client.php @@ -96,7 +96,7 @@ public function request($path, $params = null, $method = 'POST', $fullPath = fal break; case 'POST': curl_setopt($ch, CURLOPT_POST, 1); - curl_setopt($ch, CURLOPT_POSTFIELDS, http_build_query($params)); + curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($params)); break; case 'DELETE': curl_setopt($ch, CURLOPT_CUSTOMREQUEST, 'DELETE');