From cd799354350a5ffbe3e1fd1e44c6d9736beed186 Mon Sep 17 00:00:00 2001 From: Valentin Samir Date: Thu, 4 Jun 2015 14:48:07 +0200 Subject: [PATCH] so no xml/text header in SLO --- cas_server/models.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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: