diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-07 22:33:00 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-01-07 22:33:00 +0000 |
commit | ccdcc971f6d0dbc6122d547be814c7e8826b7453 (patch) | |
tree | 03c5d2b915eef9716fa03a0d697db4c7888d950b | |
parent | 3a0aa7f8d836cec8354ffce06d8ff189cee5d1a0 (diff) |
* lib/open-uri.rb (OpenURI.redirectable?): reverted https redirection.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@21381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 4 | ||||
-rw-r--r-- | lib/open-uri.rb | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -1,3 +1,7 @@ +Thu Jan 8 07:30:52 2009 Tanaka Akira <akr@fsij.org> + + * lib/open-uri.rb (OpenURI.redirectable?): reverted https redirection. + Thu Jan 8 00:31:58 2009 Tanaka Akira <akr@fsij.org> * lib/test/unit/assertions.rb (assert_no_match): don't count up as two diff --git a/lib/open-uri.rb b/lib/open-uri.rb index 1584e35817..2a6c544fe6 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(?:https?|ftp)\z/i =~ uri1.scheme && /\A(?:https?|ftp)\z/i =~ uri2.scheme) + (/\A(?:http|ftp)\z/i =~ uri1.scheme && /\A(?:http|ftp)\z/i =~ uri2.scheme) end def OpenURI.open_http(buf, target, proxy, options) # :nodoc: |