Skip to content

ensure_correct_media_type does not set response Content-Type to application/vnd.api+json #698

Open
@jerelmiller

Description

@jerelmiller

I noticed that when the ensure_correct_media_type before_action is run, and validation fails (Content-Type is not application/vnd.api+json, that the response from the server has a Content-Type header set to application/json. According to the spec, shouldn't this failed validation also return a Content-Type header of application/vnd.api+json?

Thanks ahead of time for the help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions