nodeSolidServer / nodeSolidServer/node-solid-server
Handle Content-Type parameter
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.8k
- Forks
- 308
- PR merge metrics
- No merged PRs in 30d
Description
https://datatracker.ietf.org/doc/html/rfc7231#section-3.1.1.1
When a Content-Type includes a parameter, for example charset, this errors:
Loss of media-type parameters:
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/handlers/put.js lines 15-17 to inspect the error triggered by a parameterized Content-Type, then review lib/utils.js lines 251-254 for where media-type parameters are discarded. The work is done when Content-Type values containing parameters such as charset are accepted and their parameters are preserved.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100