Fix Host header to correctly reflect hostname
The hostname previously given in the Host header was a malformed hostname. This was because the PORT could be -1 without being checked.
The hostname previously given in the Host header was a malformed hostname. This was because the PORT could be -1 without being checked.