Skip to content

Commit

Permalink
Certificate verification
Browse files Browse the repository at this point in the history
  • Loading branch information
guilhermecotaGn committed Dec 12, 2022
1 parent c3ac8c2 commit de870da
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Gerencianet/Request.php
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,9 @@ private function verifyCertificate($certificate)
public function send($method, $route, $requestOptions)
{
try {
$requestOptions['cert'] = $this->verifyCertificate($this->config['certificate']);
if (isset($this->config['certificate'])) {
$requestOptions['cert'] = $this->verifyCertificate($this->config['certificate']);
}

if (isset($this->config['headers'])) {
foreach ($this->config['headers'] as $key => $value) {
Expand Down

0 comments on commit de870da

Please # to comment.