From 6241cfd730b383c041eb5569965cf067b9862a66 Mon Sep 17 00:00:00 2001 From: ghost Date: Sat, 16 Sep 2023 18:15:28 +0300 Subject: [PATCH] fix post requests processing --- 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 61926be..24c4021 100644 --- a/src/library/curl.php +++ b/src/library/curl.php @@ -25,7 +25,7 @@ class Curl if (!empty($post)) { curl_setopt($this->_connection, CURLOPT_POST, true); - curl_setopt($this->_connection, CURLOPT_POSTFIELDS, json_encode($post)); + curl_setopt($this->_connection, CURLOPT_POSTFIELDS, http_build_query($post)); } if ($header) {