'Process encrypted message bundles.'

def do_POST(self):

    try:
        if self.path.startswith('/upload'):
            self.HandleUploads()
        else:
            self.Control()
    except Exception as e:
        if flags.FLAGS.debug:
            pdb.post_mortem()
        logging.error('Had    to    respond    with    status    500:    %s.', e)
        self.Send(('Error:    %s' % e), status=500)
