Redirect with 303 See Other.
authorAnders Kaseorg <andersk@mit.edu>
Wed, 4 Jun 2008 17:53:21 +0000 (13:53 -0400)
committerAnders Kaseorg <andersk@mit.edu>
Wed, 4 Jun 2008 17:53:21 +0000 (13:53 -0400)
svn path=/trunk/packages/sipb-xen-www/; revision=588

code/main.py

index 10b6d73..d05eaca 100755 (executable)
@@ -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: