Browse Source

encode request string to json

main
ghost 1 year ago
parent
commit
4405005b61
  1. 2
      src/library/curl.php

2
src/library/curl.php

@ -20,7 +20,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, $post); curl_setopt($this->_connection, CURLOPT_POSTFIELDS, json_encode($post));
} }
if ($header) { if ($header) {

Loading…
Cancel
Save