Skip to content

Commit

Permalink
Merge pull request #105 from daniellienert/bugfix/set-curl-opt-correctly
Browse files Browse the repository at this point in the history
BUGFIX: Convert true / false to correct curlopt value
  • Loading branch information
daniellienert authored Dec 9, 2022
2 parents c771c63 + 7aca3b8 commit b07f718
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Classes/Transfer/RequestService.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@ public function initializeObject()
{
$requestEngine = new CurlEngine();
$requestEngine->setOption(CURLOPT_TIMEOUT, $this->settings['transfer']['connectionTimeout']);
$requestEngine->setOption(CURLOPT_SSL_VERIFYPEER, $this->settings['transfer']['sslVerifyPeer']);
$requestEngine->setOption(CURLOPT_SSL_VERIFYHOST, $this->settings['transfer']['sslVerifyHost']);
$requestEngine->setOption(CURLOPT_SSL_VERIFYPEER, $this->settings['transfer']['sslVerifyPeer'] ?? true ? 2 : 0);
$requestEngine->setOption(CURLOPT_SSL_VERIFYHOST, $this->settings['transfer']['sslVerifyHost'] ?? true ? 2 : 0);
$this->browser->setRequestEngine($requestEngine);
}

Expand Down

0 comments on commit b07f718

Please sign in to comment.