aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/http/headers.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-10-18 15:22:58 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2012-10-18 15:22:58 -0700
commitb2debfb005cc6d0661b24c50983a885509f7f9c9 (patch)
treedb58e0c6b95dcfd6bb208e76fc5997bf6fefb360 /actionpack/lib/action_dispatch/http/headers.rb
parent6ea781c9a7913ddf75ecdb26a273e194df95b2dc (diff)
downloadrails-b2debfb005cc6d0661b24c50983a885509f7f9c9.tar.gz
rails-b2debfb005cc6d0661b24c50983a885509f7f9c9.tar.bz2
rails-b2debfb005cc6d0661b24c50983a885509f7f9c9.zip
add test for fetch with a block
Diffstat (limited to 'actionpack/lib/action_dispatch/http/headers.rb')
-rw-r--r--actionpack/lib/action_dispatch/http/headers.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/lib/action_dispatch/http/headers.rb b/actionpack/lib/action_dispatch/http/headers.rb
index 1580241b92..9105da186f 100644
--- a/actionpack/lib/action_dispatch/http/headers.rb
+++ b/actionpack/lib/action_dispatch/http/headers.rb
@@ -17,8 +17,8 @@ module ActionDispatch
def key?(k); @headers.key? k; end
alias :include? :key?
- def fetch(header_name, default=nil, &block)
- @headers.fetch env_name(header_name), default, &block
+ def fetch(header_name, *args, &block)
+ @headers.fetch env_name(header_name), *args, &block
end
def each(&block)