Sha256: 11f1f864bd5f064370ef85b609e6418131769aa29969fe54a620f6a650fa0699

Contents?: true

Size: 264 Bytes

Versions: 4

Compression:

Stored size: 264 Bytes

Contents

module OpenURI
  def OpenURI.redirectable?(uri1, uri2) #nesc patch otherwise OPENURI blocks redirects to and from https
    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

4 entries across 4 versions & 1 rubygems

Version Path
rubyretriever-1.0.3 lib/retriever/openuri-redirect-patch.rb
rubyretriever-1.0.2 lib/retriever/openuri-redirect-patch.rb
rubyretriever-1.0.1 lib/retriever/openuri-redirect-patch.rb
rubyretriever-1.0.0 lib/retriever/openuri-redirect-patch.rb