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

Update ContentNegotiationStrategy to never return an empty List [SPR-16624] #21165

spring-projects-issues opened this issue Mar 22, 2018 · 0 comments
in: web type: enhancement


Copy link

spring-projects-issues commented Mar 22, 2018

Rob Winch opened SPR-16624 and commented

Currently the implementations of ContentNegotiationStrategy might return an empty List which should be interpreted as MediaType.ALL. This means that all consumers of this API must translate the response. It would be nice if ContentNegotiationStrategy would never return an empty List and instead return MediaType.ALL.

The same changes should be made to RequestedContentTypeResolver

Affects: 5.0.4

Reference URL: spring-projects/spring-boot#10907

0 votes, 5 watchers

@spring-projects-issues spring-projects-issues added type: enhancement in: web labels Jan 11, 2019
@spring-projects-issues spring-projects-issues added this to the 5.0.5 milestone Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
in: web type: enhancement
None yet

No branches or pull requests

2 participants