Skip to content

Commit 65aebc1

Browse files
committed
Merge branch 'ValerioOnGithub-master'
* ValerioOnGithub-master: Add data processing using the Curl::buildPostData() in the Curl::patch()
2 parents 0cf3ae5 + 7c023e1 commit 65aebc1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Curl/Curl.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ public function patch($url, $data = array())
444444
$this->setURL($url);
445445
$this->unsetHeader('Content-Length');
446446
$this->setOpt(CURLOPT_CUSTOMREQUEST, 'PATCH');
447-
$this->setOpt(CURLOPT_POSTFIELDS, $data);
447+
$this->setOpt(CURLOPT_POSTFIELDS, $this->buildPostData($data));
448448
return $this->exec();
449449
}
450450

0 commit comments

Comments
 (0)