-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
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
Content negotiation handling #1112
Comments
Plume should match on the |
My bad, I only provided a part of the header that provokes the HTML response; here it is in full: I've updated the top post, too. |
rocket has some support for handling media types that on first glance looks like it would remove the need for custom parsing code for the more complex cases, and handles |
Fetching a Plume page at https://blog.nataraj.ru/~/It/%D0%92%D1%8B%D0%BF%D1%83%D1%81%D1%82%D0%B8%D0%BB%20%D1%80%D0%B5%D0%BB%D0%B8%D0%B7%20%D0%B8%D0%B3%D1%80%D1%8B%20Goblin%20Camp%20v0.23 with just
Accept: application/activity+json
returns AS2 (as expected). Fetching the same URL withAccept: application/activity+json; q=0.9, application/ld+json;profile="https://www.w3.org/ns/activitystreams"; q=0.8, text/html; charset=utf-8; q=0.7
(as Bridgy Fed does, for example) returns HTML with norel=alternate
link pointing to AS2, thus making Fediverse interaction fail.The text was updated successfully, but these errors were encountered: