diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-21 16:43:01 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2015-08-21 16:59:12 -0700 |
commit | ba2173a10d6578c40f85dcca3bb0314ad7b84963 (patch) | |
tree | 728981efd995686bc8ebe36463ee2e5e90302289 /actionpack/lib/action_dispatch | |
parent | 1fbf5ad7f71f8b6fdf9639eb85f5fe9733c045bd (diff) | |
download | rails-ba2173a10d6578c40f85dcca3bb0314ad7b84963.tar.gz rails-ba2173a10d6578c40f85dcca3bb0314ad7b84963.tar.bz2 rails-ba2173a10d6578c40f85dcca3bb0314ad7b84963.zip |
use `set_header` rather than []=
This allows us to avoid calling `env_name` twice.
Diffstat (limited to 'actionpack/lib/action_dispatch')
-rw-r--r-- | actionpack/lib/action_dispatch/http/headers.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/http/headers.rb b/actionpack/lib/action_dispatch/http/headers.rb index 05191ff2fd..ca6cf339ed 100644 --- a/actionpack/lib/action_dispatch/http/headers.rb +++ b/actionpack/lib/action_dispatch/http/headers.rb @@ -82,7 +82,7 @@ module ActionDispatch # <tt>headers_or_env</tt>. def merge!(headers_or_env) headers_or_env.each do |key, value| - self[env_name(key)] = value + @req.set_header env_name(key), value end end |