Ticket #28982: proposed.patch
File proposed.patch, 688 bytes (added by , 10 years ago) |
---|
-
.php
old new 921 921 922 922 $strHeaders = strtoupper($r['method']) . ' ' . $requestPath . ' HTTP/' . $r['httpversion'] . "\r\n"; 923 923 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 ) 927 925 $strHeaders .= 'Host: ' . $arrURL['host'] . "\r\n"; 926 else 927 $strHeaders .= 'Host: ' . $arrURL['host'] . ':' . $arrURL['port'] . "\r\n"; 928 928 929 929 if ( isset($r['user-agent']) ) 930 930 $strHeaders .= 'User-agent: ' . $r['user-agent'] . "\r\n";