tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

404.py (259B)


      1 # iframe does not fire onload event if the response's content-type is not
      2 # text/plain or text/html so this script exists if you want to test a 404 load
      3 # in an iframe.
      4 def main(req, res):
      5    return 404, [(b'Content-Type', b'text/plain')], b"Page not found"