# File lib/openid/fetchers.rb, line 96 def do_get(url, limit=5) if limit == 0 return nil end begin u = URI.parse(url) http = get_http_obj(u) resp = http.get(u.request_uri) rescue nil else case resp when Net::HTTPSuccess then [resp, URI.parse(url).to_s] when Net::HTTPRedirection then do_get(resp["location"], limit-1) else nil end end end