Ticket #36253: fix_port_in_host_header.diff
File fix_port_in_host_header.diff, 689 bytes (added by , 9 years ago) |
---|
-
wp-includes/class-wp-http-streams.php
69 69 70 70 if ( isset( $r['headers']['Host'] ) || isset( $r['headers']['host'] ) ) { 71 71 if ( isset( $r['headers']['Host'] ) ) 72 $arrURL['host'] = $r['headers']['Host'];72 $arrURL['host'] = array_shift( explode( ':', $r['headers']['Host'] ) ); 73 73 else 74 $arrURL['host'] = $r['headers']['host'];74 $arrURL['host'] = array_shift( explode( ':', $r['headers']['host'] ) ); 75 75 unset( $r['headers']['Host'], $r['headers']['host'] ); 76 76 } 77 77