Author: russellm
Date: 2010-01-28 08:46:29 -0600 (Thu, 28 Jan 2010)
New Revision: 12343

Modified:
   django/trunk/django/test/client.py
Log:
Fixed #12720 -- Corrected handling of cookies in the TestClient. Thanks to 
James Henstridge for the report and patch.

Modified: django/trunk/django/test/client.py
===================================================================
--- django/trunk/django/test/client.py  2010-01-28 14:18:46 UTC (rev 12342)
+++ django/trunk/django/test/client.py  2010-01-28 14:46:29 UTC (rev 12343)
@@ -198,7 +198,7 @@
         using the arguments to the request.
         """
         environ = {
-            'HTTP_COOKIE':      self.cookies,
+            'HTTP_COOKIE':       self.cookies.output(header='', sep='; '),
             'PATH_INFO':         '/',
             'QUERY_STRING':      '',
             'REMOTE_ADDR':       '127.0.0.1',

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to django-upda...@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to