Skip to content

Commit

Permalink
Add port to Host header
Browse files Browse the repository at this point in the history
  • Loading branch information
kaso17 committed Dec 7, 2016
1 parent 0045551 commit 36cdfc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion php/Snoopy.class.inc
Expand Up @@ -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"))
Expand Down

0 comments on commit 36cdfc4

Please sign in to comment.