Skip to content

Commit

Permalink
remove curl-specific guzzle options
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-G committed Apr 3, 2020
1 parent 4dd117f commit b1c7024
Showing 1 changed file with 1 addition and 14 deletions.
15 changes: 1 addition & 14 deletions src/Client.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ public function __construct(array $config = [])

if (isset($this->config['http_client'])) {
$this->http_client = $this->config['http_client'];
unset($this->config['http_client']);
} else {
$this->http_client = new \GuzzleHttp\Client([
'base_uri' => $this->getBaseURL(),
'curl' => $this->getCurlOptions()
]);
}
}
Expand Down Expand Up @@ -230,19 +230,6 @@ public function getBaseURL() : string
return $this->getApiURL().$this->getApiVersion().'/';
}

/**
* returns an array with curl options
* For example:
* [CURLOPT_SSL_VERIFYPEER => FALSE] // ignores SSL certificate issues
* @see https://www.php.net/manual/en/function.curl-setopt.php
* @param none
* @return array
*/
public function getCurlOptions()
{
return [];
}

/**
* Function gets the Api url
* @return string Returns a string containing the api url
Expand Down

0 comments on commit b1c7024

Please sign in to comment.