Project

General

Profile

Bug #2027 ยป open_uri_redirects_to_https.patch

m.carrasco.m (Manuel Carrasco), 09/02/2009 12:30 AM

View differences:

/mirai/SOFT/ruby/1.8.7/lib/ruby/1.8/open-uri.rb 2009-09-01 17:21:49.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: