Skip to content

ResourceHttpRequestHandler does not take into account mime types configured in WebMvcConfigurerAdapter [SPR-13658] #18233

Closed
@spring-projects-issues

Description

@spring-projects-issues

Tom Adam opened SPR-13658 and commented

getMediaType method in ResourceHttpRequestHandler does not take into account the media types registered by a WebMvcConfigurerAdapter instance's configureContentNegotiation method. The method only checks mime types registered in the servlet context of JAF. This way it is impossible to register special media types for static resources except for using web.xml.


Affects: 4.1.8

Issue Links:

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