Skip to content

Commit

Permalink
Merge branch '5.2' into 5.x
Browse files Browse the repository at this point in the history
* 5.2:
  added missing gitattributes and gitignore
  allow CurlHttpClient on Windows
  [Security] Mark ExpiredLoginLinkStorage as experimental
  remove references to "Silex"
  • Loading branch information
derrabus committed Apr 4, 2021
2 parents 710f6fa + c6bd591 commit bf21bef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion HttpClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public static function create(array $defaultOptions = [], int $maxHostConnection
}

if (\extension_loaded('curl')) {
if ('\\' !== \DIRECTORY_SEPARATOR || ini_get('curl.cainfo') || ini_get('openssl.cafile') || ini_get('openssl.capath')) {
if ('\\' !== \DIRECTORY_SEPARATOR || isset($defaultOptions['cafile']) || isset($defaultOptions['capath']) || ini_get('curl.cainfo') || ini_get('openssl.cafile') || ini_get('openssl.capath')) {
return new CurlHttpClient($defaultOptions, $maxHostConnections, $maxPendingPushes);
}

Expand Down

0 comments on commit bf21bef

Please sign in to comment.