Skip to content

Commit

Permalink
BUGFIX: Convert true / false to correct curlopt value
Browse files Browse the repository at this point in the history
  • Loading branch information
daniellienert committed Dec 9, 2022
1 parent c771c63 commit 7aca3b8
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 7aca3b8

Please sign in to comment.