aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/http/headers.rb
diff options
context:
space:
mode:
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)