(self)
| 35 | class 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: |
no test coverage detected