Fix bug as url.Parse assumes a single host is a pathname not host