Skip to content

Commit

Permalink
Merge pull request #20 from CircleOfNice/v0.2.1
Browse files Browse the repository at this point in the history
#17 fixed curl reset bug
  • Loading branch information
TobiasHauck committed May 7, 2015
2 parents 208b5f8 + d269591 commit f945674
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Services/Curl.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ public function sendRequest($url, $method, array $options = array(), $payload =
$curlMetaData = (object) curl_getinfo($this->curl);

$this->curlOptionsHandler->reset();
function_exists(curl_reset($this->curl)) ? curl_reset($this->curl) : curl_setopt_array($this->curl, $this->curlOptionsHandler->getOptions());
function_exists('curl_reset') ? curl_reset($this->curl) : curl_setopt_array($this->curl, $this->curlOptionsHandler->getOptions());

return $this->createResponse($curlResponse, $curlMetaData);
}
Expand Down

0 comments on commit f945674

Please sign in to comment.