Skip to content

Trustless Gateway format parameter should take priority over accept header? #521

@achingbrain

Description

@achingbrain

The Trustless Gateway spec says of the format parameter:

When both the Accept header and format parameter are present, a specific Accept value (e.g., application/vnd.ipld.raw) SHOULD take precedence over format.

As written this prevents browsers from using the format parameter to control how a resource is returned.

For example if I request a block that can be rendered as HTML is requested as raw using the format parameter an Accept header with specific (e.g. non-wildcard) values is always sent:

Image

..so following the spec the block should be rendered as HTML and the format param ignored.

I think this is the wrong way round - e.g. the format parameter should always take priority over the Accept header if it is present.

Metadata

Metadata

Assignees

No one assigned

    Labels

    need/triageNeeds initial labeling and prioritization

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions