Skip to content

Commit

Permalink
Bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Nyholm committed Oct 23, 2019
1 parent a13576d commit 6a83dbd
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/Handler/CurlFactory.php
Expand Up @@ -454,8 +454,12 @@ private function applyHandlerOptions(EasyHandle $easy, array &$conf)
}

if (isset($options['ssl_key'])) {
if (is_array($options['ssl_key']) && count($options['ssl_key']) === 2) {
list($sslKey, $conf[CURLOPT_SSLKEYPASSWD]) = $options['ssl_key'];
if (is_array($options['ssl_key'])) {
if (count($options['ssl_key']) === 2) {
list($sslKey, $conf[CURLOPT_SSLKEYPASSWD]) = $options['ssl_key'];
} else {
list($sslKey) = $options['ssl_key'];
}
}

$sslKey = isset($sslKey) ? $sslKey: $options['ssl_key'];
Expand Down

0 comments on commit 6a83dbd

Please sign in to comment.