aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/http/headers.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2015-09-04 17:36:15 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2015-09-04 17:37:22 -0700
commit529136d670c46bd66b56c519d4f51ed8f86c75b1 (patch)
tree2888e7d0f8fb8a58184dd520816def1ba08e9e13 /actionpack/lib/action_dispatch/http/headers.rb
parent3f24fa338ffb63e3f25d1c72f0dc65665fd97cec (diff)
downloadrails-529136d670c46bd66b56c519d4f51ed8f86c75b1.tar.gz
rails-529136d670c46bd66b56c519d4f51ed8f86c75b1.tar.bz2
rails-529136d670c46bd66b56c519d4f51ed8f86c75b1.zip
stop inheriting from Rack::Request
Just include the modules necessary in the Request object to implement the things we need. This should make it easier to build delegate request objects because the API is smaller
Diffstat (limited to 'actionpack/lib/action_dispatch/http/headers.rb')
-rw-r--r--actionpack/lib/action_dispatch/http/headers.rb2
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 fbdec6c132..9a3aaca3f0 100644
--- a/actionpack/lib/action_dispatch/http/headers.rb
+++ b/actionpack/lib/action_dispatch/http/headers.rb
@@ -64,7 +64,7 @@ module ActionDispatch
# If the code block is provided, then it will be run and
# its result returned.
def fetch(key, default = DEFAULT)
- @req.get_header(env_name(key)) do
+ @req.fetch_header(env_name(key)) do
return default unless default == DEFAULT
return yield if block_given?
raise NameError, key