fix bug when port is also in  because user agent sent according host header
Merge pull request #43 from mikey179/master

fix bug when port is also in  because user agent sent according host header