Skip to content

Commit

Permalink
warning removed while running with 1.9.3
Browse files Browse the repository at this point in the history
I removed this because this gem is used in rails 
and when we run rails test then the warnings are coming.
All test passing after these changes.
  • Loading branch information
arunagw committed Nov 28, 2011
1 parent e0671ac commit af306b5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lib/rack/cache/context.rb
Expand Up @@ -18,6 +18,7 @@ class Context
def initialize(backend, options={})
@backend = backend
@trace = []
@env = nil

initialize_options options
yield self if block_given?
Expand Down
2 changes: 1 addition & 1 deletion lib/rack/cache/metastore.rb
Expand Up @@ -37,7 +37,7 @@ def lookup(request, entity_store)
match = entries.detect{|req,res| requests_match?(res['Vary'], env, req)}
return nil if match.nil?

req, res = match
_, res = match
if body = entity_store.open(res['X-Content-Digest'])
restore_response(res, body)
else
Expand Down

0 comments on commit af306b5

Please sign in to comment.