node-solid-server icon indicating copy to clipboard operation
node-solid-server copied to clipboard

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

Open Vinnl opened this issue 5 years ago • 0 comments

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

Vinnl avatar Sep 30 '20 09:09 Vinnl