about summary refs log tree commit
diff options
context:
space:
mode:
-rw-r--r--lib/metropolis/tc/hdb.rb6
-rw-r--r--test/test_tc_hdb.rb2
2 files changed, 1 insertions, 7 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|
diff --git a/test/test_tc_hdb.rb b/test/test_tc_hdb.rb
index f9ccabd..c272093 100644
--- a/test/test_tc_hdb.rb
+++ b/test/test_tc_hdb.rb
@@ -81,7 +81,7 @@ class Test_TC_HDB < Test::Unit::TestCase
     r = o.head('hellox', {})
     assert_equal 404, r[0].to_i
     assert_equal 'text/plain', r[1]['Content-Type']
-    assert_equal '0', r[1]['Content-Length']
+    assert_equal '10', r[1]['Content-Length']
     assert_equal "", r[2].join('')
   end