Convert types and subtypes to lowercase
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 65/100
Research direction
Start by locating the parsing path in python-mimeparse that lowercases parameter names, then compare its handling of type and subtype tokens with RFC 9110 Sections 8.3.1 and 5.6.6. Done means type and subtype tokens are normalized to lowercase while parameter values retain their defined case behavior.
Written by the indexing model from the issue text.
Description
Section 8.3.1 of RFC 9110 defines media types in the context of HTTP. It says:
The type and subtype tokens are case-insensitive.
Section 5.6.6 of RFC 9110 defines parameters for media types. It says:
Parameter names are case-insensitive. Parameter values might or might not be case-sensitive, depending on the semantics of the parameter name.
At the moment, python-mimeparse converts all parameter names to lowercase, but it does not change the capitalization of types and subtypes. It would be more consistent if python-mimeparse also converted types and subtypes to all lowercase. Doing so would also help programs that use python-mimeparse comply with the “The type and subtype tokens are case-insensitive” rule.
- Dominant language
- Python
- Stars
- 20
- Forks
- 12
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
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.
More from falconry/python-mimeparse
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
falconry/python-mimeparse#53 ·
-
Difficulty 3/5 1-2 days Newbie friendliness 38/100
falconry/python-mimeparse#50 · 9 comments ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
falconry/python-mimeparse#45 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 20/100
falconry/python-mimeparse#40 · 1 reaction ·
-
Difficulty 5/5 Over a week Newbie friendliness 20/100
falconry/python-mimeparse#20 · 16 comments ·
All issues in falconry/python-mimeparse
Similar issues
-
documentation help wanted
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
simonw/sqlite-utils#872 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100