|
|
@@ -209,16 +209,17 @@ class Zend_Service_WindowsAzure_Storage
|
|
|
}
|
|
|
|
|
|
// Setup default Zend_Http_Client channel
|
|
|
- $this->_httpClientChannel = new Zend_Http_Client(
|
|
|
- null,
|
|
|
- array(
|
|
|
- 'adapter' => 'Zend_Http_Client_Adapter_Proxy',
|
|
|
- 'curloptions' => array(
|
|
|
+ $options = array(
|
|
|
+ 'adapter' => 'Zend_Http_Client_Adapter_Proxy'
|
|
|
+ );
|
|
|
+ if (function_exists('curl_init')) {
|
|
|
+ // Set cURL options if cURL is used afterwards
|
|
|
+ $options['curloptions'] = array(
|
|
|
CURLOPT_FOLLOWLOCATION => true,
|
|
|
CURLOPT_TIMEOUT => 120,
|
|
|
- )
|
|
|
- )
|
|
|
- );
|
|
|
+ );
|
|
|
+ }
|
|
|
+ $this->_httpClientChannel = new Zend_Http_Client(null, $options);
|
|
|
}
|
|
|
|
|
|
/**
|