Skip to content

Commit

Permalink
Fixes zendframework#600 - Undefined property $config in Zend_Http_Cli…
Browse files Browse the repository at this point in the history
…ent_Adapter_Curl
  • Loading branch information
froschdesign committed Aug 13, 2015
1 parent 3054bfd commit cb979e2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/Zend/Http/Client/Adapter/Curl.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ public function connect($host, $port = 80, $secure = false)
}

// Set connection timeout
$connectTimeout = $this->config['timeout'];
$connectTimeout = $this->_config['timeout'];
$constant = CURLOPT_CONNECTTIMEOUT;
if (defined('CURLOPT_CONNECTTIMEOUT_MS')) {
$connectTimeout *= 1000;
Expand All @@ -232,7 +232,7 @@ public function connect($host, $port = 80, $secure = false)

// Set request timeout (once connection is established)
if (array_key_exists('request_timeout', $this->_config)) {
$requestTimeout = $this->config['request_timeout'];
$requestTimeout = $this->_config['request_timeout'];
$constant = CURLOPT_TIMEOUT;
if (defined('CURLOPT_TIMEOUT_MS')) {
$requestTimeout *= 1000;
Expand Down

0 comments on commit cb979e2

Please sign in to comment.