(self)
| 230 | self.end_headers() |
| 231 | |
| 232 | def do_GET(self): |
| 233 | if not self.headers.get("Authorization", ""): |
| 234 | self.do_AUTHHEAD() |
| 235 | self.wfile.write(b"No Auth header received") |
| 236 | elif self.headers.get( |
| 237 | "Authorization", "") == "Basic " + self.ENCODED_AUTH: |
| 238 | self.send_response(200) |
| 239 | self.end_headers() |
| 240 | self.wfile.write(b"It works") |
| 241 | else: |
| 242 | # Request Unauthorized |
| 243 | self.do_AUTHHEAD() |
| 244 | |
| 245 | |
| 246 |
nothing calls this directly
no test coverage detected