mirror of
https://github.com/YGGverse/YGGtracker.git
synced 2026-04-02 18:15:33 +00:00
encode request string to json
This commit is contained in:
parent
515aeadb32
commit
4405005b61
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue