Update ContentNegotiationStrategy to never return an empty List [SPR-16624] #21165
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
spring-projects-issues commentedMar 22, 2018
Rob Winch opened SPR-16624 and commented
Currently the implementations of
ContentNegotiationStrategy
might return an empty List which should be interpreted asMediaType.ALL
. This means that all consumers of this API must translate the response. It would be nice ifContentNegotiationStrategy
would never return an emptyList
and instead returnMediaType.ALL
.The same changes should be made to
RequestedContentTypeResolver
Affects: 5.0.4
Reference URL: spring-projects/spring-boot#10907
0 votes, 5 watchers
The text was updated successfully, but these errors were encountered: