示例#1
0
 def is_cgi(self):
     # Having a CGI suffix is really a big hint of being a CGI script.
     if self.path.endswith('.cgi'):
         self.cgi_info = _url_collapse_path_split(self.path)
         return True
     else:
         return CGIHTTPRequestHandler.is_cgi(self)
示例#2
0
    def is_cgi(self):

        if urlparse(self.path).path.endswith('.cgi'):
            self.cgi_info = _url_collapse_path_split(self.path)
            return True
        else:
            return CGIHTTPRequestHandler.is_cgi(self)
示例#3
0
 def is_cgi(self):
     # Having a CGI suffix is really a big hint of being a CGI script.
     if urlparse(self.path).path.endswith('.cgi'):
         self.cgi_info = _url_collapse_path_split(self.path)
         return True
     else:
         return CGIHTTPRequestHandler.is_cgi(self)
示例#4
0
	def is_cgi(self):
		r = CGIHTTPRequestHandler.is_cgi(self)
		if r and self.path.startswith(self.repo_vfolder ):
			head, tail = self.cgi_info 
			self.cgi_info = head, GIT_HTTP_BACKEND_NAME + "/" + tail
		return r