ruby-changes:44330
From: kazu <ko1@a...>
Date: Thu, 13 Oct 2016 00:28:06 +0900 (JST)
Subject: [ruby-changes:44330] kazu:r56403 (trunk): do not need to downcase twice
kazu 2016-10-13 00:28:01 +0900 (Thu, 13 Oct 2016) New Revision: 56403 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=56403 Log: do not need to downcase twice Modified files: trunk/test/uri/test_generic.rb Index: test/uri/test_generic.rb =================================================================== --- test/uri/test_generic.rb (revision 56402) +++ test/uri/test_generic.rb (revision 56403) @@ -898,7 +898,7 @@ class URI::TestGeneric < Test::Unit::Tes https://github.com/ruby/ruby/blob/trunk/test/uri/test_generic.rb#L898 def [](k) k = k.downcase - @h.has_key?(k) ? @h[k.downcase][1] : nil + @h.has_key?(k) ? @h[k][1] : nil end def length -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/