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)
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)
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)
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