Skip to content

Commit b5700fe

Browse files
committed
Merge branch 'FearlessKiwis-MAGETWO-54717-end-of-file-message-on-system-upgrade-login' into develop-PR
2 parents dd8d073 + fe3778c commit b5700fe

File tree

1 file changed

+7
-0
lines changed
  • lib/internal/Magento/Framework/HTTP/Client

1 file changed

+7
-0
lines changed

lib/internal/Magento/Framework/HTTP/Client/Curl.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@
1212
*/
1313
class Curl implements \Magento\Framework\HTTP\ClientInterface
1414
{
15+
/**
16+
* Max supported protocol by curl CURL_SSLVERSION_TLSv1_2
17+
* @var int
18+
*/
19+
private static $sslVersion = 6;
20+
1521
/**
1622
* Hostname
1723
* @var string
@@ -374,6 +380,7 @@ protected function makeRequest($method, $uri, $params = [])
374380
//$this->curlOption(CURLOPT_HEADER, 1);
375381
$this->curlOption(CURLOPT_RETURNTRANSFER, 1);
376382
$this->curlOption(CURLOPT_HEADERFUNCTION, [$this, 'parseHeaders']);
383+
$this->curlOption(CURLOPT_SSLVERSION, self::$sslVersion);
377384

378385
if (count($this->_curlUserOptions)) {
379386
foreach ($this->_curlUserOptions as $k => $v) {

0 commit comments

Comments
 (0)