Skip to content

Commit

Permalink
Change curl_setopt() with CURLOPT_POSTFIELDS, add json_encode for params
Browse files Browse the repository at this point in the history
  • Loading branch information
adiafora committed Dec 13, 2020
1 parent b0aa6a9 commit e642d9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Contexts/PostContext.php
Expand Up @@ -12,7 +12,7 @@ class PostContext extends AbstractContext
public function curlSetoptMethod($curl)
{
curl_setopt($curl, CURLOPT_POST, true);
curl_setopt($curl, CURLOPT_POSTFIELDS, $this->api->getParams());
curl_setopt($curl, CURLOPT_POSTFIELDS, json_encode($this->api->getParams(), JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES));
}

public function getUrlForSend()
Expand Down

0 comments on commit e642d9e

Please sign in to comment.