encode request string to json

This commit is contained in:
ghost 2023-09-15 03:25:37 +03:00
parent 515aeadb32
commit 4405005b61

View File

@ -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) {