From 36cdfc4cd92b5903c2f8bc8981ef05d3380d5b02 Mon Sep 17 00:00:00 2001 From: kaso17 Date: Wed, 7 Dec 2016 10:04:11 +0100 Subject: [PATCH] Add port to Host header --- php/Snoopy.class.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/php/Snoopy.class.inc b/php/Snoopy.class.inc index 3401e31a2..0ebaf5d43 100644 --- a/php/Snoopy.class.inc +++ b/php/Snoopy.class.inc @@ -317,7 +317,7 @@ class Snoopy if(!empty($this->agent)) $headers .= "User-Agent: ".$this->agent."\r\n"; if(!empty($this->host) && !isset($this->rawheaders['Host'])) - $headers .= "Host: ".$this->host."\r\n"; + $headers .= "Host: ".$this->host.":".$this->port."\r\n"; if(!empty($this->accept)) $headers .= "Accept: ".$this->accept."\r\n"; if($this->use_gzip && function_exists("gzinflate"))