diff --git a/src/library/curl.php b/src/library/curl.php index c880268..2f2a765 100644 --- a/src/library/curl.php +++ b/src/library/curl.php @@ -20,7 +20,7 @@ class Curl if (!empty($post)) { curl_setopt($this->_connection, CURLOPT_POST, true); - curl_setopt($this->_connection, CURLOPT_POSTFIELDS, $post); + curl_setopt($this->_connection, CURLOPT_POSTFIELDS, json_encode($post)); } if ($header) {