uri_fetcher.rb revision cf44a17768d43920e482d2a7323f20a2c09ec6ae
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync def fetch_uri_content(uri, limit: 10, write_file: nil, prev_resp: nil)
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync raise TooManyRedirectionsError.new(last_response: prev_resp) if limit == 0
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync elsif response['location'] && !response['location'].empty?
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync limit: limit-1,
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync raise UnfollowableResponseError.new(last_response: response)
4fd606d1f5abe38e1f42c38de1d2e895166bd0f4vboxsync def produce_response_body(response, write_file=nil)