Properly parse and get host in case of CONNECT request