Don't add port if port == 80 (default port). fixes #3993

git-svn-id: http://svn.automattic.com/wordpress/trunk@5424 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
rob1n 2007-05-10 01:26:56 +00:00
parent 17be568a6d
commit ece3623070
1 changed files with 1 additions and 1 deletions

View File

@ -796,7 +796,7 @@ class Snoopy
$headers .= "User-Agent: ".$this->agent."\r\n";
if(!empty($this->host) && !isset($this->rawheaders['Host'])) {
$headers .= "Host: ".$this->host;
if(!empty($this->port))
if(!empty($this->port) && $this->port != 80)
$headers .= ":".$this->port;
$headers .= "\r\n";
}