node-solid-server
node-solid-server copied to clipboard
A HEAD to a Container does not return the correct Content-Type
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