Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[1.1.X] Fixed #12720 -- Corrected handling of cookies in the TestClie…

…nt. 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
  • Loading branch information...
commit 32b573d36b42b37c5ce86185074fd239128826ca 1 parent 6d02f50
@freakboy3742 freakboy3742 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/test/client.py
View
2  django/test/client.py
@@ -193,7 +193,7 @@ def request(self, **request):
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',

0 comments on commit 32b573d

Please sign in to comment.
Something went wrong with that request. Please try again.