#!/usr/bin/env python3
import http.server
import socketserver
import os

os.chdir(os.path.dirname(os.path.abspath(__file__)))

class H(http.server.SimpleHTTPRequestHandler):
    def end_headers(self):
        self.send_header('Cache-Control', 'no-store')
        super().end_headers()

PORT = 8080
# Bind 0.0.0.0 so an Android device on the same network / adb-reverse
# can reach it. For local-only testing change to '127.0.0.1'.
with socketserver.TCPServer(('0.0.0.0', PORT), H) as httpd:
    print(f'Serving POC on http://0.0.0.0:{PORT}/poc.html')
    httpd.serve_forever()
