summaryrefslogtreecommitdiff
path: root/inc/HTTPClient.php
diff options
context:
space:
mode:
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';