Project

General

Profile

Feature #859 ยป open-uri.rb.patch

romanbsd (Roman Shterenzon), 12/12/2008 03:16 AM

View differences:

open-uri.rb 2008-12-11 20:10:25.000000000 +0200
# file:///etc/passwd.
# However this is ad hoc. It should be extensible/configurable.
uri1.scheme.downcase == uri2.scheme.downcase ||
(/\A(?:http|ftp)\z/i =~ uri1.scheme && /\A(?:http|ftp)\z/i =~ uri2.scheme)
(/\A(?:https?|ftp)\z/i =~ uri1.scheme && /\A(?:https?|ftp)\z/i =~ uri2.scheme)
end
def OpenURI.open_http(buf, target, proxy, options) # :nodoc:
    (1-1/1)