summary refs log tree commit
diff options
context:
space:
mode:
authorSho Ito <i.sho.0628@gmail.com>2019-08-21 23:45:09 +0900
committerSho Ito <i.sho.0628@gmail.com>2019-08-21 23:45:09 +0900
commitff03f1f2a16859d9a03a8c2c36c5af328b799c2a (patch)
tree602a3b62dabee9a69be0a5e6b3b0a40eab3c5dcc
parent29e9aeb63cdebe49682ea0cf9ef423007ac1d738 (diff)
downloadrack-ff03f1f2a16859d9a03a8c2c36c5af328b799c2a.tar.gz
revert a freeze method
-rw-r--r--lib/rack/utils.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rack/utils.rb b/lib/rack/utils.rb
index 612e37cf..43d70a85 100644
--- a/lib/rack/utils.rb
+++ b/lib/rack/utils.rb
@@ -447,7 +447,7 @@ module Rack
       end
 
       def []=(k, v)
-        canonical = k.downcase
+        canonical = k.downcase.freeze
         delete k if @names[canonical] && @names[canonical] != k # .delete is expensive, don't invoke it unless necessary
         @names[canonical] = k
         super k, v