We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c6a6e1e + b605844 commit 67f7c49Copy full SHA for 67f7c49
src/Curl/Curl.php
@@ -62,7 +62,10 @@ public function post($url, $data = array())
62
{
63
$this->setopt(CURLOPT_URL, $url);
64
$this->setopt(CURLOPT_POST, true);
65
- $data = http_build_query($data);
+ if (is_array($data) || is_object($data))
66
+ {
67
+ $data = http_build_query($data);
68
+ }
69
$this->setopt(CURLOPT_POSTFIELDS, $data);
70
$this->_exec();
71
}
0 commit comments