Skip to content

Commit

Permalink
Fixed #12720 -- Corrected handling of cookies in the TestClient. Than…
Browse files Browse the repository at this point in the history
…ks to James Henstridge for the report and patch.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@12343 bcc190cf-cafb-0310-a4f2-bffc1f526a37
  • Loading branch information
freakboy3742 committed Jan 28, 2010
1 parent 33f4473 commit e808fc8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion django/test/client.py
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def request(self, **request):
using the arguments to the request. using the arguments to the request.
""" """
environ = { environ = {
'HTTP_COOKIE': self.cookies, 'HTTP_COOKIE': self.cookies.output(header='', sep='; '),
'PATH_INFO': '/', 'PATH_INFO': '/',
'QUERY_STRING': '', 'QUERY_STRING': '',
'REMOTE_ADDR': '127.0.0.1', 'REMOTE_ADDR': '127.0.0.1',
Expand Down

0 comments on commit e808fc8

Please sign in to comment.