Merge pull request #92 from zborboa-google/patch-6

Clean up
This commit is contained in:
Zach Borboa
2014-11-05 12:00:24 -08:00
+1 -1
View File
@@ -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();