summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-07 22:33:00 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-01-07 22:33:00 +0000
commitc1cab3eea53686bb454a9c8aef3582cd4d7173bf (patch)
tree03c5d2b915eef9716fa03a0d697db4c7888d950b /lib
parent284e89824c7d568a2187c8f7aa8ac2f7de177ad5 (diff)
downloadruby-c1cab3eea53686bb454a9c8aef3582cd4d7173bf.tar.gz
ruby-c1cab3eea53686bb454a9c8aef3582cd4d7173bf.tar.xz
ruby-c1cab3eea53686bb454a9c8aef3582cd4d7173bf.zip
* lib/open-uri.rb (OpenURI.redirectable?): reverted https redirection.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@21381 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/open-uri.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/open-uri.rb b/lib/open-uri.rb
index 1584e3581..2a6c544fe 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: