Feature #859 ยป open-uri.rb.patch
| 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:
|
||