Skip to content

Fix errant “accept anything” handling of providers #64

Description

@cowtowncoder

(see FasterXML/jackson-jaxrs-providers#162 for background)

When hasMatchingMediaType returns true by default, it is impossible to have a catch-all provider, or even a sensible and predicatable error, when the response doesn’t have a content-type.

So let's add a new JakartaRSFeature, MATCH_ALL_IF_NO_MEDIA_TYPE, defaulting to false for allowing/preventing loose match.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions