summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/rack/utils.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/rack/utils.rb b/lib/rack/utils.rb
index 58940b6d..b8215d92 100644
--- a/lib/rack/utils.rb
+++ b/lib/rack/utils.rb
@@ -474,8 +474,8 @@ module Rack
alias_method :member?, :include?
alias_method :key?, :include?
- def fetch(*args)
- super(@names[args.first.downcase] || args.first, *(args.drop(1)))
+ def fetch(k, *args)
+ super(@names[k.downcase] || k, *args)
end
def merge!(other)