Opened 7 years ago
Last modified 7 years ago
#29576 closed Bug
Fix construction of HTTP_COOKIE value in base environ of test requests — at Version 1
| 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'
Note:
See TracTickets
for help on using tickets.