class Bundler::Settings::Mirrors

def fetch_valid_mirror_for(uri)

def fetch_valid_mirror_for(uri)
  downcased = uri.to_s.downcase
  mirror = @mirrors[downcased] || @mirrors[Gem::URI(downcased).host] || Mirror.new(uri)
  mirror.validate!(@prober)
  mirror = Mirror.new(uri) unless mirror.valid?
  mirror
end