Fix for modified status headers.
authorEric Price <ecprice@mit.edu>
Wed, 4 Jun 2008 05:12:59 +0000 (01:12 -0400)
committerEric Price <ecprice@mit.edu>
Wed, 4 Jun 2008 05:12:59 +0000 (01:12 -0400)
svn path=/trunk/packages/sipb-xen-www/; revision=587

code/main.py

index 29b46db..10b6d73 100755 (executable)
@@ -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 '<pre>%s</pre>' % cgi.escape(str(checkpoint))