summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRussell Keith-Magee <russell@keith-magee.com>2010-01-28 14:46:29 +0000
committerRussell Keith-Magee <russell@keith-magee.com>2010-01-28 14:46:29 +0000
commite808fc898b8a97601a174ff14ac500eaf07bc3ae (patch)
treea84faec216e62b52eee83d2f1038aeed56079171
parent33f44736480b5ef2b1804372754824044feab18b (diff)
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
-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 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',