lanthaler / JsonLD

JSON-LD processor for PHP
MIT License
335 stars 62 forks source link

schema.org no longer returning application/ld+json #99

Closed Sarke closed 4 years ago

Sarke commented 4 years ago

When FileGetContentsLoader::loadDocument('http://schema.org') it now fails on line 105 because it's text/html and not json.

Not sure when that changed, but it pretty much breaks any schema lookup, unless it is cached.

Sarke commented 4 years ago

https://github.com/schemaorg/schemaorg/issues/2578#issuecomment-632227864

Looks like they no longer do HTTP content negotiation, and are using Link: headers instead.

lanthaler commented 4 years ago

I just released version 1.2.0 with @tomgillett's fix that adds support for the alternate Link header that schema.org now uses.