summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2010-01-28 14:47:42 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2010-01-28 14:47:42 +0000
commit32b573d36b42b37c5ce86185074fd239128826ca (patch)
treec8b1793ad777a63c13f2a08142c5937ac6b4816c
parent6d02f50a8ba2e5c3aa911de9d9837523693cea5e (diff)
[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
-rw-r--r--django/test/client.py2
1 files changed, 1 insertions, 1 deletions
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',