Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (18 sloc) 643 Bytes
from base import *
MAGIC = "This shouldn't be sent"
CONF = """
vserver!1!rule!500!match = directory
vserver!1!rule!500!match!directory = /head-body
vserver!1!rule!500!handler = common
class Test (TestBase):
def __init__ (self):
TestBase.__init__ (self, __file__) = "Head doesn't include body"
self.request = "HEAD /head-body/test HTTP/1.0\r\n"
self.conf = CONF
self.expected_error = 200
self.forbidden_content = MAGIC
def Prepare (self, www):
self.Mkdir (www, "head-body")
self.WriteFile (www, "head-body/test", 0444, MAGIC)
Jump to Line
Something went wrong with that request. Please try again.