Changed `<CR><LF>` line endings to `<LF>` in `views.login`. Fixes #2
authorMarek Stępniowski <marek@stepniowski.com>
Sat, 15 Oct 2011 10:38:28 +0000 (12:38 +0200)
committerMarek Stępniowski <marek@stepniowski.com>
Sat, 15 Oct 2011 10:38:28 +0000 (12:38 +0200)
cas_provider/views.py

index d64aa50..42faf0a 100644 (file)
@@ -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)