replace \r\n in CAS v.1 validate response to \n
[django-cas-provider.git] / cas_provider / views.py
index 8a6e4bf..b2e54f2 100644 (file)
@@ -67,10 +67,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'):