#!/usr/bin/env python3 import os import sys method = os.environ.get('REQUEST_METHOD', '') sys.stdout.write( 'Content-Type: text/html\r\n\r\n' '\n' '
\n' '\n' '\n' '\n' '\n' 'If the current entry in the session history represents a non-GET request\n' '(e.g. it was the result of a POST submission) then update it to instead\n' 'represent a GET request (or equivalent).\n' '
\n' '\n' 'This test checks that this works when reloading the page using history.go(0).\n' '
\n' '\n' 'This test passes if this page is eventually loaded with a GET request.\n' '
\n' '\n' 'This page was loaded with a {} request.\n' '
\n' '\n'.format(method) )