File tree 1 file changed +5
-4
lines changed
1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -70,17 +70,18 @@ def send_head(self):
70
70
return SimpleHTTPServer .SimpleHTTPRequestHandler .send_head (self )
71
71
72
72
def is_cgi (self ):
73
- """Test whether self.path corresponds to a CGI script.
73
+ """Test whether self.path corresponds to a CGI script,
74
+ and return a boolean.
74
75
75
- Return a tuple (dir, rest) if self.path requires running a
76
- CGI script, None if not. Note that rest begins with a
76
+ This function sets self.cgi_info to a tuple (dir, rest)
77
+ when it returns True, where dir is the directory part before
78
+ the CGI script name. Note that rest begins with a
77
79
slash if it is not empty.
78
80
79
81
The default implementation tests whether the path
80
82
begins with one of the strings in the list
81
83
self.cgi_directories (and the next character is a '/'
82
84
or the end of the string).
83
-
84
85
"""
85
86
86
87
path = self .path
You can’t perform that action at this time.
0 commit comments