Skip to content

Outgoing Content-Type is not scoped #127

@warriordog

Description

@warriordog

According to the spec, the acceptable content types are:

  • application/ld+json; profile="https://www.w3.org/ns/activitystreams"
  • application/activity+json

The latter type is described as optional, and implementations are not required to support it.
For best results, it's recommended to accept either form but use the first for outgoing requests.

Our implementation currently supports only the second, unscoped type along with these extra types for maximum compatibility:

  • application/activity+json
  • application/ld+json
  • application/json

This works against all tested Fedi implementations, but we should include the profile for better spec-compliance. This may require a refactor of ActivityPubOptions.

See also: https://www.w3.org/TR/activitypub/#client-to-server-interactions

Metadata

Metadata

Assignees

Labels

area:codeAffects or applies to the library codegood first issueGood for newcomerstype:bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions