Skip to content
代码片段 群组 项目
未验证 提交 8a030516 编辑于 作者: Olivier El Mekki's avatar Olivier El Mekki
浏览文件

FIX handle Mastodon using Content-Type header instead of Accept

When Mastodon fetches the profile URL for an actor, it sets the
ActivityPub `Accept` header,
[as specified by the standard](https://www.w3.org/TR/activitypub/#retrieving-objects).

But then, when it sends Follow activities, it switches to using
[Content-Type header](https://github.com/mastodon/mastodon/blob/main/app/workers/activitypub/delivery_worker.rb#L23).

Not sure why it does that, I thought `Content-Type` was for responses,
not for requests. Anyway, we need to cover that case.
上级 0ff9a2bb
No related branches found
No related tags found
加载中
加载中
0% 加载中 .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册