Skip to content
This repository was archived by the owner on Dec 14, 2018. It is now read-only.
This repository was archived by the owner on Dec 14, 2018. It is now read-only.

MeidaType's subtype with suffix should be a subset of a subtype without suffix #8156

@kichalla

Description

@kichalla

Is this a Bug or Feature request?:

Bug

Steps to reproduce (preferably a link to a GitHub repo with a repro project):

Add the following 2 tests to the IsSubsetOf_ReturnsTrueWhenExpected test in Microsoft.AspNetCore.Mvc.Formatters.MediaTypeTest and they fail

[InlineData("application/json", "application/vnd.restful+json")]
[InlineData("application/json", "application/problem+json")]

Description of the problem:

According to https://tools.ietf.org/html/rfc6839#section-2, content like application/problem+json should be able to be processed as though its application\json too, but currently we don't consider application/problem+json as a subtype.

Version of Microsoft.AspNetCore.Mvc or Microsoft.AspNetCore.App or Microsoft.AspNetCore.All:

2.1.3 and latest

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions