@@ -310,7 +310,7 @@ |
||
| 310 | 310 | $options['hooks']->dispatch('curl.before_request', array(&$this->handle)); |
| 311 | 311 | |
| 312 | 312 | // Force closing the connection for old versions of cURL (<7.22). |
| 313 | - if ( ! isset( $headers['Connection'] ) ) { |
|
| 313 | + if (!isset($headers['Connection'])) { |
|
| 314 | 314 | $headers['Connection'] = 'close'; |
| 315 | 315 | } |
| 316 | 316 | |
@@ -171,7 +171,7 @@ |
||
| 171 | 171 | if (!isset($case_insensitive_headers['Host'])) { |
| 172 | 172 | $out .= sprintf('Host: %s', $url_parts['host']); |
| 173 | 173 | |
| 174 | - if (( 'http' === strtolower($url_parts['scheme']) && $url_parts['port'] !== 80 ) || ( 'https' === strtolower($url_parts['scheme']) && $url_parts['port'] !== 443 )) { |
|
| 174 | + if (('http' === strtolower($url_parts['scheme']) && $url_parts['port'] !== 80) || ('https' === strtolower($url_parts['scheme']) && $url_parts['port'] !== 443)) { |
|
| 175 | 175 | $out .= ':' . $url_parts['port']; |
| 176 | 176 | } |
| 177 | 177 | $out .= "\r\n"; |