mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-08-28 19:20:56 +00:00
Add data processing using the Curl::buildPostData() in the Curl::patch()
This commit is contained in:
committed by
Valeriy Tropin
parent
40988fa501
commit
f71b60e873
+1
-1
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user