diff options
author | Eric Wong <normalperson@yhbt.net> | 2010-11-30 15:04:57 -0800 |
---|---|---|
committer | Eric Wong <normalperson@yhbt.net> | 2010-11-30 15:04:57 -0800 |
commit | 000726f5302f18ff095c68dfedf1547d0946209c (patch) | |
tree | 2798c9b097bffe8a85ead6da2c391363b7b80d6a /lib/metropolis/hash.rb | |
parent | 61120b1268679bb8ffa157736e91e6846fd2a372 (diff) | |
download | metropolis-000726f5302f18ff095c68dfedf1547d0946209c.tar.gz |
internal API: get and head methods require env
We'll need it for implementing the deflater/inflater
Diffstat (limited to 'lib/metropolis/hash.rb')
-rw-r--r-- | lib/metropolis/hash.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |