We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The JSON-LD spec uses the following accept header:
Accept: application/ld+json;profile=http://www.w3.org/ns/json-ld#expanded
When I try to use negotiator with this accept header, I'm seeing the following behaviour:
negotiator.mediaType() is application/ld+json negotiator.mediaType(["application/ld+json"]) is undefined
negotiator.mediaType without the parameter is correct, but negotiator.mediaType with the parameter is incorrect.
negotiator.mediaType
This is probably linked to the profile parameter, as adding another MIME type after that works correctly:
profile
Accept: application/ld+json;profile=http://www.w3.org/ns/json-ld#expanded, application/n-quads
negotiator.mediaTypes() is [ 'application/ld+json', 'application/n-quads' ] negotiator.mediaTypes(["application/n-quads"]) is [ 'application/n-quads' ]
The text was updated successfully, but these errors were encountered:
Duplicate of #35 , I think.
Sorry, something went wrong.
No branches or pull requests
The JSON-LD spec uses the following accept header:
When I try to use negotiator with this accept header, I'm seeing the following behaviour:
negotiator.mediaType
without the parameter is correct, butnegotiator.mediaType
with the parameter is incorrect.This is probably linked to the
profile
parameter, as adding another MIME type after that works correctly:The text was updated successfully, but these errors were encountered: