(self, handler)
| 422 | handler.end_headers() |
| 423 | |
| 424 | def serve_apple_touch_icon(self, handler): |
| 425 | handler.send_response(200) |
| 426 | handler.send_header("Content-type", "image/png") |
| 427 | handler.end_headers() |
| 428 | icon_path = os.path.join(self.shared_data.webdir, 'icons/apple-touch-icon.png') |
| 429 | try: |
| 430 | with open(icon_path, 'rb') as file: |
| 431 | handler.wfile.write(file.read()) |
| 432 | except FileNotFoundError: |
| 433 | handler.send_response(404) |
| 434 | handler.end_headers() |
| 435 | |
| 436 | def scan_wifi(self, handler): |
| 437 | try: |