| 410 | handler.end_headers() |
| 411 | |
| 412 | def serve_manifest(self, handler): |
| 413 | handler.send_response(200) |
| 414 | handler.send_header("Content-type", "application/json") |
| 415 | handler.end_headers() |
| 416 | manifest_path = os.path.join(self.shared_data.webdir, 'manifest.json') |
| 417 | try: |
| 418 | with open(manifest_path, 'r') as file: |
| 419 | handler.wfile.write(file.read().encode('utf-8')) |
| 420 | except FileNotFoundError: |
| 421 | handler.send_response(404) |
| 422 | handler.end_headers() |
| 423 | |
| 424 | def serve_apple_touch_icon(self, handler): |
| 425 | handler.send_response(200) |