Fix the adding of .torrent files via http links which was broken by 30bc5a1da68ad.