]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
test_web: oops, actually use HEAD (instead of GET) in the HEAD test
authorBrian Warner <warner@allmydata.com>
Wed, 13 Aug 2008 02:04:51 +0000 (19:04 -0700)
committerBrian Warner <warner@allmydata.com>
Wed, 13 Aug 2008 02:04:51 +0000 (19:04 -0700)
src/allmydata/test/test_web.py

index b794f8d4dbc9dbb0b84d3a9a6bddae4f6f2da997..9173c55381d479f9c670447208da325e0e43bcf0 100644 (file)
@@ -227,7 +227,7 @@ class WebMixin(object):
     def HEAD(self, urlpath):
         # this requires some surgery, because twisted.web.client doesn't want
         # to give us back the response headers.
-        factory = HTTPClientHEADFactory(urlpath)
+        factory = HTTPClientHEADFactory(urlpath, method="HEAD")
         reactor.connectTCP("localhost", self.webish_port, factory)
         return factory.deferred