open-uri.rb.patch

Roman Shterenzon, 12/12/2008 03:16 AM

Download (547 Bytes)

View differences:

open-uri.rb 2008-12-11 20:10:25.000000000 +0200
195 195
    # file:///etc/passwd.
196 196
    # However this is ad hoc.  It should be extensible/configurable.
197 197
    uri1.scheme.downcase == uri2.scheme.downcase ||
198
    (/\A(?:http|ftp)\z/i =~ uri1.scheme && /\A(?:http|ftp)\z/i =~ uri2.scheme)
198
    (/\A(?:https?|ftp)\z/i =~ uri1.scheme && /\A(?:https?|ftp)\z/i =~ uri2.scheme)
199 199
  end
200 200

  
201 201
  def OpenURI.open_http(buf, target, proxy, options) # :nodoc: