Skip to content

Seed support for Json-Home does not support Accept header #225

Description

@Magador

According to the RFC 7231, section 5.3.2:

The "Accept" header field can be used by user agents to specify response media types that are acceptable.

However, when requesting the JSON-HOME resource and setting the Accept: application/json-home header , the server returns a 404 error because it does not process well the header.

But when using the Content-Type: application/json-home header, the server correctly returns the JSON-HOME resource with the correct content type.

In the RFC 7231, section 3.1.1.5:

The "Content-Type" header field indicates the media type of the associated representation…

Where the "representation" is the payload of the message (request or response).

So the Content-Type header should not be used in the request to specify the server about the media type to return. The Accept header should be used instead.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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