Skip to content

Commit

Permalink
curl response bug fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
steevenz committed Jul 19, 2018
1 parent e81dffc commit 9a495c8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -578,7 +578,11 @@ public function get(array $query = [])
*/
public function getResponse()
{
$handle = curl_init($this->uri->__toString());
if(array_key_exists(CURLOPT_URL, $this->curlOptions)) {
$handle = curl_init();
} else {
$handle = curl_init($this->uri->__toString());
}

$headers = [];
if (count($this->curlHeaders)) {
Expand Down

0 comments on commit 9a495c8

Please sign in to comment.