Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 30 lines (24 sloc) 0.785 kB
f047333 @alobbs This patch fixes yet another problem related to the parsing of the
alobbs authored
1 from base import *
2 from util import *
3
4 DIR = "test_266"
5 FILE = "filename.txt"
6
7 CONF = """
8 vserver!1!rule!2650!match = directory
9 vserver!1!rule!2650!match!directory = /%(DIR)s
10 vserver!1!rule!2650!encoder!gzip = forbid
11 """
12
13 # Cherokee 1.0.11 failed to start whenever an encoder was set to
14 # 'forbid'.
15 #
16
17 class Test (TestBase):
18 def __init__ (self):
19 TestBase.__init__ (self, __file__)
20 self.name = "Encoders: forbid"
21 self.request = "GET /%(DIR)s/ HTTP/1.0\r\n" %(globals()) + \
22 "Accept-Encoding: gzip\r\n"
23 self.conf = CONF
24 self.expected_error = 200
25 self.expected_content = [FILE]
26
27 def Prepare (self, www):
28 d = self.Mkdir (www, DIR)
29 self.WriteFile (d, FILE)
Something went wrong with that request. Please try again.