From e808fc898b8a97601a174ff14ac500eaf07bc3ae Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Thu, 28 Jan 2010 14:46:29 +0000 Subject: [PATCH] Fixed #12720 -- Corrected handling of cookies in the TestClient. Thanks to James Henstridge for the report and patch. git-svn-id: http://code.djangoproject.com/svn/django/trunk@12343 bcc190cf-cafb-0310-a4f2-bffc1f526a37 --- django/test/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/test/client.py b/django/test/client.py index 63ad1c1d3a..a44887b715 100644 --- a/django/test/client.py +++ b/django/test/client.py @@ -198,7 +198,7 @@ class Client(object): 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',