Skip to content

Match on composite MIME types as well #614

@fluffy-critter

Description

@fluffy-critter

If a template is designated as having a MIME type of foo/bar then it should also match an Accept: of foo/baz+bar if there are no direct matches.

For example, with this template mapping:

{
    '.byaml': 'application/blap+yaml',
    '.yaml': 'application/yaml'
}

then if someone makes a request for /blap with an Accept: application/blap+yaml, it should try /blap.byaml, and if that fails it should try /blap.yaml.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions