From: Marek Stępniowski Date: Sat, 15 Oct 2011 10:38:28 +0000 (+0200) Subject: Changed `` line endings to `` in `views.login`. Fixes #2 X-Git-Tag: 22.4~66 X-Git-Url: https://git.mdrn.pl/django-cas-provider.git/commitdiff_plain/c677197b3cd17b71f79b8e71f9192ac6c3e2e2b4?ds=inline Changed `` line endings to `` in `views.login`. Fixes #2 --- diff --git a/cas_provider/views.py b/cas_provider/views.py index d64aa50..42faf0a 100644 --- a/cas_provider/views.py +++ b/cas_provider/views.py @@ -58,10 +58,10 @@ def validate(request): ticket = ServiceTicket.objects.get(ticket=ticket_string) username = ticket.user.username ticket.delete() - return HttpResponse("yes\r\n%s\r\n" % username) + return HttpResponse("yes\n%s\n" % username) except: pass - return HttpResponse("no\r\n\r\n") + return HttpResponse("no\n\n") def logout(request, template_name='cas/logout.html'): url = request.GET.get('url', None)