Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

34 lines (26 sloc) 0.878 kB
from base import *
DIR = "220_pathinfo_is_slash"
CONF = """
vserver!1!rule!2201!match = extensions
vserver!1!rule!2201!match!extensions = xx220xx
vserver!1!rule!2201!handler = cgi
vserver!1!rule!2200!match = directory
vserver!1!rule!2200!match!directory = /%s
vserver!1!rule!2200!handler = file
""" % (DIR)
CGI_BASE = """#!/bin/sh
echo "Content-type: text/html"
echo ""
echo "PATH_INFO: ($PATH_INFO)"
"""
class Test (TestBase):
def __init__ (self):
TestBase.__init__ (self, __file__)
self.name = "Pathinfo is /"
self.request = "GET /%s/index.xx220xx/ HTTP/1.0\r\n" %(DIR)
self.conf = CONF
self.expected_error = 200
self.expected_content = "PATH_INFO: (/)"
def Prepare (self, www):
d = self.Mkdir (www, DIR)
self.WriteFile (d, "index.xx220xx", 0755, CGI_BASE)
Jump to Line
Something went wrong with that request. Please try again.