mirror of
https://github.com/php-curl-class/php-curl-class.git
synced 2026-09-10 10:26:35 +00:00
+1
-1
@@ -175,9 +175,9 @@ class Curl
|
||||
|
||||
public function options($url, $data = array())
|
||||
{
|
||||
$this->unsetHeader('Content-Length');
|
||||
$this->base_url = $url;
|
||||
$this->url = $url;
|
||||
$this->unsetHeader('Content-Length');
|
||||
$this->setOpt(CURLOPT_URL, $this->buildURL($url, $data));
|
||||
$this->setOpt(CURLOPT_CUSTOMREQUEST, 'OPTIONS');
|
||||
return $this->exec();
|
||||
|
||||
Reference in New Issue
Block a user