Skip to content

Automatically set the right content type in BodyInserters#fromResource() [SPR-14905] #19471

Closed

Description

@spring-projects-issues

Sébastien Deleuze opened SPR-14905 and commented

I think it could be useful to set the right content type using PathExtensionContentTypeResolver in BodyInserters#fromResource().


Issue Links:

Activity

  1. spring-projects-issues commented on Nov 15, 2016

    @spring-projects-issues
    CollaboratorAuthor

    Sébastien Deleuze commented

    See this code for an example of the boilerplate I would like to avoid.

  2. spring-projects-issues commented on Nov 15, 2016

    @spring-projects-issues
    CollaboratorAuthor

    Arjen Poutsma commented

    Including the context-support module on the classpath fixed this issue.

    However, this issue does show that the experience of serving Resources can be improved: see #19474.

  3. added
    type: enhancement
    in: web
    on Jan 11, 2019
  4. added this to the 5.0 M4 milestone on Jan 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

in: webtype: enhancement

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions