summaryrefslogtreecommitdiffstats
path: root/wp-includes/class-snoopy.php
diff options
context:
space:
mode:
authordonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-09-11 14:42:26 +0000
committerdonncha <donncha@7be80a69-a1ef-0310-a953-fb0f7c49ff36>2007-09-11 14:42:26 +0000
commitc94e1f1a316d373a623246b045cb0feb0753f436 (patch)
treec1393a041e9f03365b16254c3f3c7b901368ab39 /wp-includes/class-snoopy.php
parent792bbe78bc95e3b3d760f402b10934f7e801cd24 (diff)
Fixes redirect, fixes #419
git-svn-id: http://svn.automattic.com/wordpress-mu/trunk@1056 7be80a69-a1ef-0310-a953-fb0f7c49ff36
Diffstat (limited to 'wp-includes/class-snoopy.php')
-rw-r--r--wp-includes/class-snoopy.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/wp-includes/class-snoopy.php b/wp-includes/class-snoopy.php
index 9bf56b3..9e60206 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";
}
@@ -816,7 +816,7 @@ class Snoopy
$cookie_headers .= $cookieKey."=".urlencode($cookieVal)."; ";
}
$headers .= substr($cookie_headers,0,-2) . "\r\n";
- }
+ }
}
if(!empty($this->rawheaders))
{