Make WordPress Core

Ticket #28982: proposed.patch

File proposed.patch, 688 bytes (added by kamelkev, 10 years ago)
  • .php

    old new  
    921921
    922922                $strHeaders = strtoupper($r['method']) . ' ' . $requestPath . ' HTTP/' . $r['httpversion'] . "\r\n";
    923923
    924                 if ( $proxy->is_enabled() && $proxy->send_through_proxy( $url ) )
    925                         $strHeaders .= 'Host: ' . $arrURL['host'] . ':' . $arrURL['port'] . "\r\n";
    926                 else
     924                if ( $arrURL['port'] == 80 || $arrURL['port'] == 443 )
    927925                        $strHeaders .= 'Host: ' . $arrURL['host'] . "\r\n";
     926                else
     927                        $strHeaders .= 'Host: ' . $arrURL['host'] . ':' . $arrURL['port'] . "\r\n";
    928928
    929929                if ( isset($r['user-agent']) )
    930930                        $strHeaders .= 'User-agent: ' . $r['user-agent'] . "\r\n";