Sha256: 06980a7d020e2b7258a5562f6fd44fd67d1fff1abacd9aef4adcd364668fb3f3

Contents?: true

Size: 267 Bytes

Versions: 13

Compression:

Stored size: 267 Bytes

Contents

#
module OpenURI
  # nesc patch otherwise OPENURI blocks redirects to and from https
  def self.redirectable?(uri1, uri2)
    uri1.scheme.downcase == uri2.scheme.downcase ||
    (/\A(?:http|https)\z/i =~ uri1.scheme && /\A(?:http|https)\z/i =~ uri2.scheme)
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
rubyretriever-1.4.6 lib/retriever/openuri_redirect_patch.rb
rubyretriever-1.4.5 lib/retriever/openuri_redirect_patch.rb
rubyretriever-1.4.4 lib/retriever/openuri_redirect_patch.rb
rubyretriever-1.4.3 lib/retriever/openuri_redirect_patch.rb
rubyretriever-1.4.2 lib/retriever/openuri_redirect_patch.rb
rubyretriever-1.4.1 lib/retriever/openuri_redirect_patch.rb
rubyretriever-1.4.0 lib/retriever/openuri_redirect_patch.rb
rubyretriever-1.3.0 lib/retriever/openuri_redirect_patch.rb
rubyretriever-1.2.4 lib/retriever/openuri_redirect_patch.rb
rubyretriever-1.2.3 lib/retriever/openuri_redirect_patch.rb
rubyretriever-1.2.2 lib/retriever/openuri_redirect_patch.rb
rubyretriever-1.2.1 lib/retriever/openuri_redirect_patch.rb
rubyretriever-1.2.0 lib/retriever/openuri_redirect_patch.rb