Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed #12720 -- Corrected handling of cookies in the TestClient. Than…

…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...
commit e808fc898b8a97601a174ff14ac500eaf07bc3ae 1 parent 33f4473
Russell Keith-Magee freakboy3742 authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  django/test/client.py
2  django/test/client.py
View
@@ -198,7 +198,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',
Please sign in to comment.
Something went wrong with that request. Please try again.