Browse Source

fix post requests processing

main
ghost 1 year ago
parent
commit
6241cfd730
  1. 2
      src/library/curl.php

2
src/library/curl.php

@ -25,7 +25,7 @@ class Curl
if (!empty($post)) if (!empty($post))
{ {
curl_setopt($this->_connection, CURLOPT_POST, true); 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) { if ($header) {

Loading…
Cancel
Save