about summary refs log tree commit
path: root/lib/metropolis/hash.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-11-30 15:04:57 -0800
committerEric Wong <normalperson@yhbt.net>2010-11-30 15:04:57 -0800
commit000726f5302f18ff095c68dfedf1547d0946209c (patch)
tree2798c9b097bffe8a85ead6da2c391363b7b80d6a /lib/metropolis/hash.rb
parent61120b1268679bb8ffa157736e91e6846fd2a372 (diff)
downloadmetropolis-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.rb2
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