Skip to content

List supported media types in HttpMediaTypeNotSupportedException when given invalid input media types #28062

Closed
@dirweis

Description

@dirweis

If I pass an unknown value in the Content-Type header (like e.g. This string) the getSupportedMediaTypes() returns falsely an empty list. If I don't pass this header (in case it is needed) the method works fine. Same when I pass a known value like e.g. application/xml. Can you fix that, please?

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions