http.cookies | RFC2109 is obsolete.
Open
Nobody has claimed this yet.
stdlib
type-bug
- Dominant language
- Python
- Stars
- 77.2k
- Forks
- 36k
- PR merge metrics
- PR metrics pending
Description
RFC2109 is obsolete.
RFC6265 has only the following headers
Expires
Max-Age
Domain
Path
Secure
HttpOnly
from http.cookies import SimpleCookie
rawdata = 'version=4'
cookie = SimpleCookie()
import http.cookies
cookie.load(rawdata)
print(cookie) # empty ; expected {'version': '4'}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with Lib/http/cookies.py lines 262-285 and reproduce the provided SimpleCookie example. Compare the parser behavior with the RFC6265 attributes listed in the issue; done means the input is handled as expected without relying on obsolete RFC2109 behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100