Skip to content

Commit

Permalink
Remove curl_reset check
Browse files Browse the repository at this point in the history
  • Loading branch information
ob-stripe committed Apr 18, 2019
1 parent c11872c commit 54d596b
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions lib/HttpClient/CurlClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public static function instance()

protected $userAgentInfo;

protected $enablePersistentConnections = null;
protected $enablePersistentConnections = true;

protected $enableHttp2 = null;

Expand All @@ -65,10 +65,6 @@ public function __construct($defaultOptions = null, $randomGenerator = null)
$this->randomGenerator = $randomGenerator ?: new Util\RandomGenerator();
$this->initUserAgentInfo();

// TODO: curl_reset requires PHP >= 5.5.0. Once we drop support for PHP 5.4, we can simply
// initialize this to true.
$this->enablePersistentConnections = function_exists('curl_reset');

$this->enableHttp2 = $this->canSafelyUseHttp2();
}

Expand Down

0 comments on commit 54d596b

Please sign in to comment.