about summary refs log tree commit
path: root/lib/metropolis/tc/hdb.rb
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2010-11-30 15:36:19 -0800
committerEric Wong <normalperson@yhbt.net>2010-11-30 15:37:04 -0800
commita76f41647fb66ac39df43f31bbdff44b9e9a6b35 (patch)
treef19324495a72d2c7f7f60136e9811c881139da45 /lib/metropolis/tc/hdb.rb
parent000726f5302f18ff095c68dfedf1547d0946209c (diff)
downloadmetropolis-a76f41647fb66ac39df43f31bbdff44b9e9a6b35.tar.gz
tc/hdb: remove HEAD optimization
It makes future extensions difficult.  HEAD requests
aren't common enough to be worth optimizing for.
Diffstat (limited to 'lib/metropolis/tc/hdb.rb')
-rw-r--r--lib/metropolis/tc/hdb.rb6
1 files changed, 0 insertions, 6 deletions
diff --git a/lib/metropolis/tc/hdb.rb b/lib/metropolis/tc/hdb.rb
index 09d6439..97e9050 100644
--- a/lib/metropolis/tc/hdb.rb
+++ b/lib/metropolis/tc/hdb.rb
@@ -124,12 +124,6 @@ module Metropolis::TC::HDB
     r(200)
   end
 
-  def head(key, env)
-    size = reader(key) { |hdb| hdb.vsiz(key) or ex!(:vsiz, hdb) }
-    0 > size and return r(404, "")
-    [ 200, { 'Content-Length' => size.to_s }.merge!(@headers), [] ]
-  end
-
   def get(key, env)
     value = nil
     reader(key) do |hdb|