Skip to content

Commit

Permalink
Merge pull request #13 from icemanpro/patch-1
Browse files Browse the repository at this point in the history
Patch 1
  • Loading branch information
amouhzi committed Apr 9, 2015
2 parents c6a6e1e + b605844 commit 67f7c49
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Curl/Curl.php
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,10 @@ public function post($url, $data = array())
{
$this->setopt(CURLOPT_URL, $url);
$this->setopt(CURLOPT_POST, true);
$data = http_build_query($data);
if (is_array($data) || is_object($data))
{
$data = http_build_query($data);
}
$this->setopt(CURLOPT_POSTFIELDS, $data);
$this->_exec();
}
Expand Down

0 comments on commit 67f7c49

Please sign in to comment.