X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/blobdiff_plain/d39b6ed13b5ba567d18a4bd0e9a3dfe67b3cc4ec..745bcc3cf6abd2330c23c74bcc2d696eaa1207f4:/code/main.py diff --git a/code/main.py b/code/main.py index 29b46db..d05eaca 100755 --- a/code/main.py +++ b/code/main.py @@ -339,7 +339,7 @@ def command(username, state, fields): return templates.list(searchList=[d]) elif back == 'info': machine = validation.Validate(username, state, machine_id=fields.getfirst('machine_id')).machine - return ({'Status': '302', + return ({'Status': '303 See Other', 'Location': '/info?machine_id=%d' % machine.machine_id}, "You shouldn't see this message.") else: @@ -675,7 +675,9 @@ Please email xvm-dev@mit.edu with the contents of this page.' ---- %s ----''' % (str(err), traceback.format_exc()) - self.start('200 OK', headers.items()) + status = headers.setdefault('Status', '200 OK') + del headers['Status'] + self.start(status, headers.items()) yield output_string if fields.has_key('timedebug'): yield '
%s
' % cgi.escape(str(checkpoint))