[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
This commit is contained in:
parent
6d02f50a8b
commit
32b573d36b
|
@ -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',
|
||||
|
|
Loading…
Reference in New Issue