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

Unrecognised relations in Content-Type interferes with content negotiation

Open csarven opened this issue 6 years ago • 3 comments

curl -iH'Accept: application/ld+json' https://csarven.solid.community/public/
HTTP/1.1 200 OK
Content-Type: application/ld+json

curl -iH'Accept: application/ld+json; profile="https://www.w3.org/ns/activitystreams"' https://csarven.solid.community/public/
HTTP/1.1 200 OK
Content-Type: text/turtle

See also:

curl -iH'Accept: application/ld+json; profile=""' https://csarven.solid.community/public/
Content-Type: application/ld+json

curl -iH'Accept: application/ld+json; profile="x"' https://csarven.solid.community/public/
Content-Type: text/turtle

curl -iH'Accept: application/ld+json; x=""' https://csarven.solid.community/public/
Content-Type: application/ld+json

curl -iH'Accept: application/ld+json; x="y"' https://csarven.solid.community/public/
Content-Type: text/turtle

The server should at the very least ignore the relations it can't handle and return application/ld+json, or return 406.

csarven avatar Nov 17 '18 00:11 csarven