For the given example, this fix will correct the construction to be:
'sessionid=helloworld'
--
Ticket URL: <https://code.djangoproject.com/ticket/29576>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
Old description:
> The existing implementation wrongly constructs cookies into:
> ' sessionid=helloworld; Domain=None; expires=None; Max-Age=None; Path=/'
>
> For the given example, this fix will correct the construction to be:
> 'sessionid=helloworld'
New description:
The bug exists at:
https://github.com/django/django/blob/master/django/test/client.py#L280
This existing implementation wrongly constructs cookies into:
' sessionid=helloworld; Domain=None; expires=None; Max-Age=None; Path=/'
For the given example, a fix will correct the construction to be:
'sessionid=helloworld'
--
--
Ticket URL: <https://code.djangoproject.com/ticket/29576#comment:1>
--
Ticket URL: <https://code.djangoproject.com/ticket/29576#comment:2>
* needs_tests: 0 => 1
* stage: Unreviewed => Accepted
--
Ticket URL: <https://code.djangoproject.com/ticket/29576#comment:3>
* owner: Thng Kai Yuan => oliver
--
Ticket URL: <https://code.djangoproject.com/ticket/29576#comment:4>
* owner: oliver => (none)
* status: assigned => new
--
Ticket URL: <https://code.djangoproject.com/ticket/29576#comment:5>
* needs_tests: 1 => 0
Comment:
Test added in new [https://github.com/django/django/pull/10212 PR].
--
Ticket URL: <https://code.djangoproject.com/ticket/29576#comment:4>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"71a739f3d752015504d455bf6f01e63a04d1a383" 71a739f3]:
{{{
#!CommitTicketReference repository=""
revision="71a739f3d752015504d455bf6f01e63a04d1a383"
Fixed #29576 -- Corrected the test client's HTTP_COOKIE header.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/29576#comment:5>