Fix the adding of .torrent files via http links which was broken by 6f5f661f3.