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:
rob1n 2007-05-10 01:26:56 +00:00
parent 059f5ae3e8
commit ea71ef4d71
1 changed files with 1 additions and 1 deletions

View File

@ -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";
} }