post-navigation-handler.py (366B)
1 import os 2 from wptserve.pipes import template 3 4 # This is used only to accept POST navigations. 5 def main(request, response): 6 response.headers.set(b"Content-Type", b"text/html") 7 response.headers.set(b"Cache-Control", b"no-store") 8 response.content = template( 9 request, 10 open(os.path.join(os.path.dirname(__file__), "executor.sub.html"), "rb").read())