Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change consumes behavior to ignore requests with no content type #4459

Merged
merged 2 commits into from Dec 11, 2018

Conversation

JamesNK
Copy link
Member

@JamesNK JamesNK commented Dec 6, 2018

Change consumes behavior to ignore requests with no content type

  • Consumes action constraint ignores empty content type
  • ConsumesMatcherPolicy ignores empty content type

Reverts aspnet/Mvc#8174

Addresses #4396

@JamesNK JamesNK force-pushed the jamesnk/consumes-nocontenttype branch from a902943 to 90b3eb3 Compare December 6, 2018 20:34
{
// If there is an endpoint that accepts */* then it is also used when there is no content type
edges.Add(string.Empty, anyEndpoints.ToList());
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice.

@JamesNK JamesNK force-pushed the jamesnk/consumes-nocontenttype branch from 90b3eb3 to 4810c18 Compare December 11, 2018 01:20
@JamesNK JamesNK merged commit c6fa808 into master Dec 11, 2018
@JamesNK JamesNK deleted the jamesnk/consumes-nocontenttype branch December 14, 2018 08:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants