Skip to content

Migrating from custom gateway API in dotnet 6 to YARP #2668

Answered by MihaZupan
aswinfrancis91 asked this question in Q&A
Discussion options

You must be logged in to vote

The ConsumesAttribute is a routing filter. If the incoming request does not have the appropriate ContentType set, your action won't be considered. Valid requests should not be impacted as your controller will remain a valid routing candidate.

Is the thing that's broken that you were testing that invalid requests result in a 415 response?

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@MihaZupan
Comment options

Answer selected by MihaZupan
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants