@@ -159,11 +159,11 @@ |
||
| 159 | 159 | curl_setopt($this->handle, CURLOPT_SSL_VERIFYHOST, 0); |
| 160 | 160 | } |
| 161 | 161 | |
| 162 | - if (isset($options['ipresolve'])) { |
|
| 163 | - if (in_array($options['ipresolve'], array(CURL_IPRESOLVE_WHATEVER, CURL_IPRESOLVE_V4, CURL_IPRESOLVE_V6))){ |
|
| 164 | - curl_setopt($this->handle, CURLOPT_IPRESOLVE, $options['ipresolve']); |
|
| 165 | - } |
|
| 166 | - } |
|
| 162 | + if (isset($options['ipresolve'])) { |
|
| 163 | + if (in_array($options['ipresolve'], array(CURL_IPRESOLVE_WHATEVER, CURL_IPRESOLVE_V4, CURL_IPRESOLVE_V6))){ |
|
| 164 | + curl_setopt($this->handle, CURLOPT_IPRESOLVE, $options['ipresolve']); |
|
| 165 | + } |
|
| 166 | + } |
|
| 167 | 167 | |
| 168 | 168 | curl_exec($this->handle); |
| 169 | 169 | $response = $this->response_data; |
@@ -160,7 +160,7 @@ discard block |
||
| 160 | 160 | } |
| 161 | 161 | |
| 162 | 162 | if (isset($options['ipresolve'])) { |
| 163 | - if (in_array($options['ipresolve'], array(CURL_IPRESOLVE_WHATEVER, CURL_IPRESOLVE_V4, CURL_IPRESOLVE_V6))){ |
|
| 163 | + if (in_array($options['ipresolve'], array(CURL_IPRESOLVE_WHATEVER, CURL_IPRESOLVE_V4, CURL_IPRESOLVE_V6))) { |
|
| 164 | 164 | curl_setopt($this->handle, CURLOPT_IPRESOLVE, $options['ipresolve']); |
| 165 | 165 | } |
| 166 | 166 | } |
@@ -316,7 +316,7 @@ discard block |
||
| 316 | 316 | $options['hooks']->dispatch('curl.before_request', array(&$this->handle)); |
| 317 | 317 | |
| 318 | 318 | // Force closing the connection for old versions of cURL (<7.22). |
| 319 | - if ( ! isset( $headers['Connection'] ) ) { |
|
| 319 | + if (!isset($headers['Connection'])) { |
|
| 320 | 320 | $headers['Connection'] = 'close'; |
| 321 | 321 | } |
| 322 | 322 | |
@@ -160,7 +160,7 @@ |
||
| 160 | 160 | } |
| 161 | 161 | |
| 162 | 162 | if (isset($options['ipresolve'])) { |
| 163 | - if (in_array($options['ipresolve'], array(CURL_IPRESOLVE_WHATEVER, CURL_IPRESOLVE_V4, CURL_IPRESOLVE_V6))){ |
|
| 163 | + if (in_array($options['ipresolve'], array(CURL_IPRESOLVE_WHATEVER, CURL_IPRESOLVE_V4, CURL_IPRESOLVE_V6))) { |
|
| 164 | 164 | curl_setopt($this->handle, CURLOPT_IPRESOLVE, $options['ipresolve']); |
| 165 | 165 | } |
| 166 | 166 | } |