diff options
| author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-27 05:30:58 +0000 |
|---|---|---|
| committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-12-27 05:30:58 +0000 |
| commit | 8e727789838b5e5b6c9748a4689acd01fb79bf52 (patch) | |
| tree | c725421c03fbc6897c67166248342e853b2e13a9 /lib | |
| parent | d66d2beb7b436c0a5d33f0d0fe5dcc2a804689d4 (diff) | |
| download | ruby-8e727789838b5e5b6c9748a4689acd01fb79bf52.tar.gz ruby-8e727789838b5e5b6c9748a4689acd01fb79bf52.tar.xz ruby-8e727789838b5e5b6c9748a4689acd01fb79bf52.zip | |
* lib/open-uri.rb (OpenURI.redirectable?): permit https redirection.
patch from Roman Shterenzon. [ruby-core:20485]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21087 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/open-uri.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/open-uri.rb b/lib/open-uri.rb index 2a6c544fe..1584e3581 100644 --- a/lib/open-uri.rb +++ b/lib/open-uri.rb @@ -240,7 +240,7 @@ module OpenURI # (RFC 2109 4.3.1, RFC 2965 3.3, RFC 2616 15.1.3) # 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: |
