Permalink
Browse files

Merge pull request #43 from arunagw/master

Warnings removed.
  • Loading branch information...
2 parents e0671ac + af306b5 commit 7e529acaa2c286bd4aeae356256faffd364a320b @rtomayko committed Nov 28, 2011
Showing with 2 additions and 1 deletion.
  1. +1 −0 lib/rack/cache/context.rb
  2. +1 −1 lib/rack/cache/metastore.rb
View
1 lib/rack/cache/context.rb
@@ -18,6 +18,7 @@ class Context
def initialize(backend, options={})
@backend = backend
@trace = []
+ @env = nil
initialize_options options
yield self if block_given?
View
2 lib/rack/cache/metastore.rb
@@ -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

0 comments on commit 7e529ac

Please sign in to comment.