diff --git a/cas_server/models.py b/cas_server/models.py index be48ac6..5fc6402 100644 --- a/cas_server/models.py +++ b/cas_server/models.py @@ -331,7 +331,7 @@ class Ticket(models.Model): def logout(self, request, session): """Send a SLO request to the ticket service""" if self.validate and self.single_log_out: - xml = """ %(ticket)s @@ -341,12 +341,10 @@ class Ticket(models.Model): 'datetime' : timezone.now().isoformat(), 'ticket': self.value } - headers = {'Content-Type': 'text/xml'} try: return session.post( self.service.encode('utf-8'), data={'logoutRequest':xml.encode('utf-8')}, - headers=headers ) except Exception as error: if request is not None: