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 Dec 11, 2018
1 parent 3493e70 commit a29f2b8
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 $curlHandle = null;

Expand All @@ -62,10 +62,6 @@ public function __construct($defaultOptions = null, $randomGenerator = null)
$this->defaultOptions = $defaultOptions;
$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');
}

public function __destruct()
Expand Down

0 comments on commit a29f2b8

Please sign in to comment.