Skip to content

Commit

Permalink
Maintain reference to the environment so Rails rack variables don't g…
Browse files Browse the repository at this point in the history
…et removed
  • Loading branch information
winton committed Dec 3, 2009
1 parent 880d87f commit 05ac431
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rack/cache/context.rb
Expand Up @@ -55,7 +55,7 @@ def call(env)
# the context of the receiver. # the context of the receiver.
def call!(env) def call!(env)
@trace = [] @trace = []
@env = @default_options.merge(env) @env = env.merge!(@default_options.merge(env))
@request = Request.new(@env.dup.freeze) @request = Request.new(@env.dup.freeze)


response = response =
Expand Down

2 comments on commit 05ac431

@rtomayko
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's really strange. Let me see if I can track this down upstream. It's a sign something is making bad assumptions.

@rtomayko
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Merged this guy. Thanks!

Please sign in to comment.