summaryrefslogtreecommitdiff
path: root/inc/HTTPClient.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2010-09-24 09:31:19 +0200
committerAndreas Gohr <andi@splitbrain.org>2010-09-24 09:31:19 +0200
commit82e1432c42fd52261e852ba59d7328759661fb5c (patch)
tree4e5ea924093c90186e78f4bdada18118140c4d54 /inc/HTTPClient.php
parentd9bdb92cc1c1e77c2b43f1ca0dd4960fa122298e (diff)
parent939a27d34f022e4a6103d65f34d2337efc1ca012 (diff)
downloadrpg-82e1432c42fd52261e852ba59d7328759661fb5c.tar.gz
rpg-82e1432c42fd52261e852ba59d7328759661fb5c.tar.bz2
Merge branch 'master' of http://github.com/alice-wl/dokuwiki
Diffstat (limited to 'inc/HTTPClient.php')
-rw-r--r--inc/HTTPClient.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/inc/HTTPClient.php b/inc/HTTPClient.php
index b6feba35a..71b6326ef 100644
--- a/inc/HTTPClient.php
+++ b/inc/HTTPClient.php
@@ -244,6 +244,7 @@ class HTTPClient {
// prepare headers
$headers = $this->headers;
$headers['Host'] = $uri['host'];
+ if($uri['port']) $headers['Host'].= ':'.$uri['port'];
$headers['User-Agent'] = $this->agent;
$headers['Referer'] = $this->referer;
$headers['Connection'] = 'Close';