Opened 6 years ago
Closed 6 years ago
#29576 closed Bug (fixed)
HTTP_COOKIE value is wrongly constructed in test client
Reported by: | Thng Kai Yuan | Owned by: | Thng Kai Yuan |
---|---|---|---|
Component: | Testing framework | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | yes | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description (last modified by )
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'
Change History (5)
comment:1 by , 6 years ago
Description: | modified (diff) |
---|
comment:2 by , 6 years ago
Summary: | Fix construction of HTTP_COOKIE value in base environ of test requests → HTTP_COOKIE value is wrongly constructed in test client |
---|
comment:3 by , 6 years ago
Needs tests: | set |
---|---|
Triage Stage: | Unreviewed → Accepted |
comment:4 by , 6 years ago
Needs tests: | unset |
---|
Note:
See TracTickets
for help on using tickets.
Test added in new PR.