MCPcopy Create free account
hub / github.com/arvidn/libtorrent / normalize_request_path

Method normalize_request_path

test/web_server.py:37–41  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

35class http_handler(BaseHTTPRequestHandler):
36
37 def normalize_request_path(self):
38 # if the request contains the hostname and port. strip it
39 if self.path.startswith('http://') or self.path.startswith('https://'):
40 self.path = self.path[8:]
41 self.path = self.path[self.path.find('/'):]
42
43 def do_GET(self):
44 try:

Callers 2

inner_do_GETMethod · 0.95
inner_do_POSTMethod · 0.95

Calls 1

findMethod · 0.45

Tested by

no test coverage detected