diff options
-rw-r--r-- | inc/HTTPClient.php | 1 |
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'; |