summaryrefslogtreecommitdiff
path: root/inc/HTTPClient.php
diff options
context:
space:
mode:
authorai <ai@notomorrow.de>2010-09-17 08:16:24 +0200
committerai <ai@notomorrow.de>2010-09-17 08:16:24 +0200
commit939a27d34f022e4a6103d65f34d2337efc1ca012 (patch)
treec00fdb0bb44471154d515de96bdc9580abe61e99 /inc/HTTPClient.php
parent40c347db9c34fc92dd5a6185ac8d8e31c819c5a1 (diff)
downloadrpg-939a27d34f022e4a6103d65f34d2337efc1ca012.tar.gz
rpg-939a27d34f022e4a6103d65f34d2337efc1ca012.tar.bz2
fixed request server port issue in httpclient
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';