Permalink
Browse files

Maintain reference to the environment so Rails rack variables don't g…

…et removed
  • Loading branch information...
1 parent 58b98ac commit a1097516d633d7319ffb9da0976f6c80387939aa @winton winton committed with Dec 3, 2009
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/rack/cache/context.rb
View
2 lib/rack/cache/context.rb
@@ -55,7 +55,7 @@ def call(env)
# the context of the receiver.
def call!(env)
@trace = []
- @env = @default_options.merge(env)
+ @env = env.merge!(@default_options.merge(env))
@request = Request.new(@env.dup.freeze)
response =

0 comments on commit a109751

Please sign in to comment.