Skip to content

Commit

Permalink
Merge pull request #1 from spackmat/patch-1
Browse files Browse the repository at this point in the history
Prevent error on systems with older cURL compile target
  • Loading branch information
pavarnos committed May 25, 2021
2 parents 4010708 + afbede0 commit 8361a1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Threema/MsgApi/HttpDriver/CurlHttpDriver.php
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ private function createDefaultOptions(\Closure $progress = null): array
}

$pinnedKey = $this->tlsOptions[self::tlsOptionPinnedKey];
if (!empty($pinnedKey)) {
if (defined('CURLOPT_PINNEDPUBLICKEY') && !empty($pinnedKey)) {
$options[CURLOPT_PINNEDPUBLICKEY] = $pinnedKey;
}

Expand Down

0 comments on commit 8361a1c

Please sign in to comment.