From: Brian Warner <warner@allmydata.com>
Date: Wed, 13 Aug 2008 02:04:51 +0000 (-0700)
Subject: test_web: oops, actually use HEAD (instead of GET) in the HEAD test
X-Git-Url: https://git.rkrishnan.org/pf/content/en/service/simplejson/?a=commitdiff_plain;h=6af46199288cf8e9eefc6f09fda1fb628671a926;p=tahoe-lafs%2Ftahoe-lafs.git

test_web: oops, actually use HEAD (instead of GET) in the HEAD test
---

diff --git a/src/allmydata/test/test_web.py b/src/allmydata/test/test_web.py
index b794f8d4..9173c553 100644
--- a/src/allmydata/test/test_web.py
+++ b/src/allmydata/test/test_web.py
@@ -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