We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
A MediatypeViewResultFormatter with supported media type text/html should handle text/html;q=0.7.
MediatypeViewResultFormatter
text/html
text/html;q=0.7
Ideally we would parse the quality value but as a minimum should change the matching logic to use string.contains:
var supportedMediaType = SupportedMediaTypes.Any( mt => acceptTypes.Any(at => at.Contains(mt, StringComparison.OrdinalIgnoreCase)));
We also need to provide a default formatter or at least return a 415 (unsupported media type) if none of the formatters are matched.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
A
MediatypeViewResultFormatter
with supported media typetext/html
should handletext/html;q=0.7
.Ideally we would parse the quality value but as a minimum should change the matching logic to use string.contains:
We also need to provide a default formatter or at least return a 415 (unsupported media type) if none of the formatters are matched.
The text was updated successfully, but these errors were encountered: