Changeset 29852
- Timestamp:
- 10/08/2014 06:14:58 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/class-http.php
r29851 r29852 971 971 $strHeaders = strtoupper($r['method']) . ' ' . $requestPath . ' HTTP/' . $r['httpversion'] . "\r\n"; 972 972 973 if ( $proxy->is_enabled() && $proxy->send_through_proxy( $url ) ) 973 $include_port_in_host_header = ( 974 ( $proxy->is_enabled() && $proxy->send_through_proxy( $url ) ) || 975 ( 'http' == $arrURL['scheme'] && 80 != $arrURL['port'] ) || 976 ( 'https' == $arrURL['scheme'] && 443 != $arrURL['port'] ) 977 ); 978 979 if ( $include_port_in_host_header ) { 974 980 $strHeaders .= 'Host: ' . $arrURL['host'] . ':' . $arrURL['port'] . "\r\n"; 975 else981 } else { 976 982 $strHeaders .= 'Host: ' . $arrURL['host'] . "\r\n"; 983 } 977 984 978 985 if ( isset($r['user-agent']) )
Note: See TracChangeset
for help on using the changeset viewer.