diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-06 15:19:30 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-06 15:59:44 -0700 |
commit | 38251d2e33ccdfeee7ddbeeba5737c2a36911606 (patch) | |
tree | 29598ca17db817c8745f2e0cc308ee49e87af5d5 /actionpack/lib/action_dispatch | |
parent | 0cfa496697662a2a8cca3ce10591d846b8b43e14 (diff) | |
download | rails-38251d2e33ccdfeee7ddbeeba5737c2a36911606.tar.gz rails-38251d2e33ccdfeee7ddbeeba5737c2a36911606.tar.bz2 rails-38251d2e33ccdfeee7ddbeeba5737c2a36911606.zip |
prevent string allocations
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/http/request.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/http/request.rb b/actionpack/lib/action_dispatch/http/request.rb index d320556b5d..eeded9ffd0 100644 --- a/actionpack/lib/action_dispatch/http/request.rb +++ b/actionpack/lib/action_dispatch/http/request.rb @@ -39,7 +39,7 @@ module ActionDispatch ENV_METHODS.each do |env| class_eval <<-METHOD, __FILE__, __LINE__ + 1 def #{env.sub(/^HTTP_/n, '').downcase} # def accept_charset - @env["#{env}"] # @env["HTTP_ACCEPT_CHARSET"] + @env["#{env}".freeze] # @env["HTTP_ACCEPT_CHARSET"] end # end METHOD end |