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

This commit is contained in:
Brian Warner 2008-08-12 19:04:51 -07:00
parent 4d6b504883
commit 6af4619928

View File

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