From: zuber Date: Mon, 5 Oct 2009 11:28:39 +0000 (+0200) Subject: Changed line endings in validate response from to to be compatible... X-Git-Tag: 22.4~32^2~18^2~1^2~12 X-Git-Url: https://git.mdrn.pl/django-cas-provider.git/commitdiff_plain/291b7802a119997fe7816034374cd9fbb4bd4d46 Changed line endings in validate response from to to be compatible with CAS 1.0 protocol specification. --- 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)