You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A more difficult failure mode to detect arises when the server does not support ActivityPub, but does support content negotiation for another JSON format. Such a server returns a 200 OK status code with a JSON object that does not use JSON-LD, or JSON-LD object that does not use the Activity Streams 2.0 vocabulary...
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 received Content-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.
The text was updated successfully, but these errors were encountered:
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.
The text was updated successfully, but these errors were encountered: