mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2024-12-25 07:31:07 +00:00
test_web: oops, actually use HEAD (instead of GET) in the HEAD test
This commit is contained in:
parent
4d6b504883
commit
6af4619928
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user