nodeSolidServer / nodeSolidServer/node-solid-server

A HEAD to a Container does not return the correct Content-Type

Open
#1,481 0 comments 0 reactions 0 assignees View on GitHub

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.