Completed
Push — master ( ea11b3...c34785 )
by Ryan
02:50
created
library/Requests/Transport/cURL.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -310,7 +310,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
library/Requests/Transport/fsockopen.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -171,7 +171,7 @@
 block discarded – undo
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";
Please login to merge, or discard this patch.