From 4405005b615fe1d910f00ff10d8b45025b90c936 Mon Sep 17 00:00:00 2001 From: ghost Date: Fri, 15 Sep 2023 03:25:37 +0300 Subject: [PATCH] encode request string to json --- src/library/curl.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {