Changed line endings in validate response from <CR><LF> to <LF> to be compatible...
authorzuber <marek@stepniowski.com>
Mon, 5 Oct 2009 11:28:39 +0000 (13:28 +0200)
committerzuber <marek@stepniowski.com>
Mon, 5 Oct 2009 11:28:39 +0000 (13:28 +0200)
cas_provider/views.py

index 02456fe..c898b78 100644 (file)
@@ -59,10 +59,10 @@ def validate(request):
             ticket = ServiceTicket.objects.get(ticket=ticket_string)
             username = ticket.user.username
             ticket.delete()
             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
         except:
             pass
-    return HttpResponse("no\n\r\n\r")
+    return HttpResponse("no\n\n")
 
 def service_validate(request):
     service = request.GET.get('service', None)
 
 def service_validate(request):
     service = request.GET.get('service', None)