From: Eric Price Date: Wed, 4 Jun 2008 05:12:59 +0000 (-0400) Subject: Fix for modified status headers. X-Git-Tag: sipb-xen-www/3.6~55 X-Git-Url: http://xvm.mit.edu/gitweb/invirt/packages/invirt-web.git/commitdiff_plain/0724e034fa2f8ab962b7eee61c8b5fdcbe8ecc8c Fix for modified status headers. svn path=/trunk/packages/sipb-xen-www/; revision=587 --- diff --git a/code/main.py b/code/main.py index 29b46db..10b6d73 100755 --- a/code/main.py +++ b/code/main.py @@ -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))