Make WordPress Core

Ticket #28982: patch.txt

File patch.txt, 596 bytes (added by kamelkev, 10 years ago)
Line 
1--- class-http.php      2014-04-05 05:48:18.000000000 +0000
2+++ class-http.php      2014-07-23 18:50:41.460291267 +0000
3@@ -923,8 +923,10 @@
4 
5                if ( $proxy->is_enabled() && $proxy->send_through_proxy( $url ) )
6                        $strHeaders .= 'Host: ' . $arrURL['host'] . ':' . $arrURL['port'] . "\r\n";
7-               else
8+               else if ( $arrURL['port'] == 80 || $arrURL['port'] == 443 )
9                        $strHeaders .= 'Host: ' . $arrURL['host'] . "\r\n";
10+               else
11+                       $strHeaders .= 'Host: ' . $arrURL['host'] . ':' . $arrURL['port'] . "\r\n";
12 
13                if ( isset($r['user-agent']) )
14                        $strHeaders .= 'User-agent: ' . $r['user-agent'] . "\r\n";