From ece3623070ad76e1ae2c504d3363f08aa97123f3 Mon Sep 17 00:00:00 2001 From: rob1n Date: Thu, 10 May 2007 01:26:56 +0000 Subject: [PATCH] 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 --- wp-includes/class-snoopy.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wp-includes/class-snoopy.php b/wp-includes/class-snoopy.php index 9bf56b3615..5e8878723d 100644 --- a/wp-includes/class-snoopy.php +++ b/wp-includes/class-snoopy.php @@ -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"; }