Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Merge pull request #43 from arunagw/master

Warnings removed.
  • Loading branch information...
commit 7e529acaa2c286bd4aeae356256faffd364a320b 2 parents e0671ac + af306b5
@rtomayko authored
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
Please sign in to comment.
Something went wrong with that request. Please try again.