From 32b573d36b42b37c5ce86185074fd239128826ca Mon Sep 17 00:00:00 2001 From: Russell Keith-Magee Date: Thu, 28 Jan 2010 14:47:42 +0000 Subject: [PATCH] [1.1.X] Fixed #12720 -- Corrected handling of cookies in the TestClient. Thanks to James Henstridge for the report and patch. Backport of r12343 from trunk. git-svn-id: http://code.djangoproject.com/svn/django/branches/releases/1.1.X@12344 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 7d50ccb326..d56472c1ae 100644 --- a/django/test/client.py +++ b/django/test/client.py @@ -193,7 +193,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',