From 291b7802a119997fe7816034374cd9fbb4bd4d46 Mon Sep 17 00:00:00 2001 From: zuber Date: Mon, 5 Oct 2009 13:28:39 +0200 Subject: [PATCH] Changed line endings in validate response from to to be compatible with CAS 1.0 protocol specification. --- cas_provider/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cas_provider/views.py b/cas_provider/views.py index 02456fe..c898b78 100644 --- a/cas_provider/views.py +++ b/cas_provider/views.py @@ -59,10 +59,10 @@ def validate(request): ticket = ServiceTicket.objects.get(ticket=ticket_string) username = ticket.user.username ticket.delete() - return HttpResponse("yes\n\r%s\n\r" % username) + return HttpResponse("yes\n%s\n" % username) except: pass - return HttpResponse("no\n\r\n\r") + return HttpResponse("no\n\n") def service_validate(request): service = request.GET.get('service', None) -- 2.20.1