Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

23 lines (17 sloc) 0.59 kb
import os.path
from base import *
DIR = "211_empty_gif"
CONF = """
vserver!1!rule!2110!match = directory
vserver!1!rule!2110!match!directory = /%s
vserver!1!rule!2110!handler = empty_gif
""" % (DIR)
class Test (TestBase):
def __init__ (self):
TestBase.__init__ (self, __file__) = "Empty GIF"
self.request = "GET /%s/foo HTTP/1.0\r\n" % (DIR)
self.expected_error = 200
self.expected_content = ["Content-Type: image/gif",
"GIF89a", "\x4c\x01\x00\x3B"]
self.conf = CONF
Jump to Line
Something went wrong with that request. Please try again.