Skip to content

ContentTypeNegotiation plug too strict about accept header? #454

Description

@grzuy

Hi there 👋

Noticed that for a POST request, the JSONAPI.ContentTypeNegotiation plug will return 406 unless accept header is set to:

  • application/vnd.api+json OR
  • not set at all

But why is that accept: */* or even accept: application/json is not acceptable?

Is there anything in the spec (https://jsonapi.org/format/#content-negotiation) stating that the client MUST provide an accept header with those strict conditions during POST?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions