From 000726f5302f18ff095c68dfedf1547d0946209c Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 30 Nov 2010 15:04:57 -0800 Subject: internal API: get and head methods require env We'll need it for implementing the deflater/inflater --- lib/metropolis/hash.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/metropolis/hash.rb') diff --git a/lib/metropolis/hash.rb b/lib/metropolis/hash.rb index 698aef0..61b7199 100644 --- a/lib/metropolis/hash.rb +++ b/lib/metropolis/hash.rb @@ -35,7 +35,7 @@ module Metropolis::Hash @db = @path = nil end - def get(key) + def get(key, env) value = @db[key] or return r(404) [ 200, { 'Content-Length' => value.size.to_s }.merge!(@headers), [ value ] ] end -- cgit v1.2.3-24-ge0c7