about summary refs log tree commit diff
path: root/config/initializers
diff options
context:
space:
mode:
authorThibG <thib@sitedethib.com>2018-10-09 12:11:14 +0200
committerGitHub <noreply@github.com>2018-10-09 12:11:14 +0200
commit4134a10549a833ad5ab18b3c579304919d594ce1 (patch)
tree696f4b453ad029ffda3d0925c484c11b27b95cc6 /config/initializers
parentd0b1369a853dc2e5b7934c148547f71f8d103859 (diff)
parentb368d3c15ddfca983e89ff2858f7f03eb7147d83 (diff)
Merge pull request #770 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'config/initializers')
-rw-r--r--config/initializers/open_uri_redirection.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/config/initializers/open_uri_redirection.rb b/config/initializers/open_uri_redirection.rb
index ea2dcffea..e9de85bdc 100644
--- a/config/initializers/open_uri_redirection.rb
+++ b/config/initializers/open_uri_redirection.rb
@@ -2,7 +2,7 @@ require 'open-uri'
 
 module OpenURI
   def self.redirectable?(uri1, uri2) # :nodoc:
-    uri1.scheme.downcase == uri2.scheme.downcase ||
+    uri1.scheme.casecmp(uri2.scheme).zero? ||
       (/\A(?:http|https|ftp)\z/i =~ uri1.scheme && /\A(?:http|https|ftp)\z/i =~ uri2.scheme)
   end
 end