Open julianlam opened 3 weeks ago
I think it's more of a situation when you use more general JSON types, like this:
GET /resource HTTP/1.1
Host: mixed.example
Accept: application/activity+json, application/ld+json, application/json
I'll update the failure mode to be more clear that it's only when you accept non-AS2 JSON media types that compliant servers might not return AS2.
If one sends
Accept: application/activity+json
and received JSON back, you're right that you don't know whether it's JSON-LD. You could theoretically backcheck this by checking the receivedContent-Type
.I would assume compliant AP implementations would send the appropriate header, but more importantly, I can absolutely rely on non-compliant implementations to not send the appropriate header back.