Fix for servers which give HTTP referrals, e.g. the whois server for .ninja