http://schema.org/ (base URL) does not respond with JSON when 'Accept' header is set · Issue #289 · jsonld-java/jsonld-java · GitHub
Skip to content

http://schema.org/ (base URL) does not respond with JSON when 'Accept' header is set #289

Description

@kevinpeterson

JSON is not returned when setting the 'Accept' header for the URL http://schema.org/.

This can be reproduced here:
curl -H "Accept:application/ld+json" https://schema.org/ -I
which returns a response with:
Content-Type: text/html

This seems to be just the base URL. Other schema.org URLs return JSON, such as:
curl -H "Accept:application/ld+json" https://schema.org/docs/jsonldcontext.json -I

This is causing some tests to fail, such as:
com.github.jsonldjava.core.DocumentLoaderTest#loadDocumentSchemaOrg

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions