Skip to content

Make url "extension" take priority over HTTP "Accept" header #92

@atuttle

Description

@atuttle

This sounds a little counterintuitive, because the header is a way to get around certain complex values registering as formats in the URL; but fortunately with #60 the developer can specify a regex for their complex tokens, and this should be less of an issue.

The monkey wrench is that if you're just making a vanilla request in the browser for "foo.json" the browser sends an Accept header of text/html. So for that reason, we should give url format/extension precedence over the Accept header because the user entering "foo.json" clearly has a better idea of what they want than the browser, which is just guessing.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions