Merge branch 'master' of https://github.com/ValerioOnGithub/php-curl-class into ValerioOnGithub-master

* 'master' of https://github.com/ValerioOnGithub/php-curl-class:
  Add data processing using the Curl::buildPostData() in the Curl::patch()
This commit is contained in:
Zach Borboa
2015-08-19 23:19:34 -07:00
+1 -1
View File
@@ -444,7 +444,7 @@ class Curl
$this->setURL($url);
$this->unsetHeader('Content-Length');
$this->setOpt(CURLOPT_CUSTOMREQUEST, 'PATCH');
$this->setOpt(CURLOPT_POSTFIELDS, $data);
$this->setOpt(CURLOPT_POSTFIELDS, $this->buildPostData($data));
return $this->exec();
}