nodeSolidServer / nodeSolidServer/node-solid-server
A HEAD to a Container does not return the correct Content-Type
Open
Nobody has claimed this yet.
- Dominant language
- JavaScript
- Stars
- 1.8k
- Forks
- 308
- PR merge metrics
- No merged PRs in 30d
Description
When I do a HEAD request to a Container, I get a Content-Type of application/octet-stream:
$ curl --head https://vincent-test.inrupt.net/public/
# ...
Content-Type: application/octet-stream; charset=utf-8
even though an actual GET request will return text/turtle:
$ curl --include --request GET https://vincent-test.inrupt.net/public/
# ...
Content-Type: text/turtle
To compare, doing a HEAD to a regular Resource does give me text/turtle:
$ curl --head https://vincent-test.inrupt.net/public/poddit.ttl
# ...
Content-Type: text/turtle; charset=utf-8
$ curl --include --request GET https://vincent-test.inrupt.net/public/poddit.ttl
# ...
Content-Type: text/turtle
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 by reproducing the HEAD and GET requests shown in the issue, then trace how the server handles containers versus regular resources and assigns Content-Type. Done means a HEAD request for a container returns text/turtle consistently with GET, while regular-resource behavior remains unchanged.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript, nodejs
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100