Don't add port if port == 80 (default port). fixes #3993
git-svn-id: https://develop.svn.wordpress.org/trunk@5424 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
parent
059f5ae3e8
commit
ea71ef4d71
|
@ -796,7 +796,7 @@ class Snoopy
|
||||||
$headers .= "User-Agent: ".$this->agent."\r\n";
|
$headers .= "User-Agent: ".$this->agent."\r\n";
|
||||||
if(!empty($this->host) && !isset($this->rawheaders['Host'])) {
|
if(!empty($this->host) && !isset($this->rawheaders['Host'])) {
|
||||||
$headers .= "Host: ".$this->host;
|
$headers .= "Host: ".$this->host;
|
||||||
if(!empty($this->port))
|
if(!empty($this->port) && $this->port != 80)
|
||||||
$headers .= ":".$this->port;
|
$headers .= ":".$this->port;
|
||||||
$headers .= "\r\n";
|
$headers .= "\r\n";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue