-
Couldn't load subscription status.
- Fork 38.8k
Closed
Description
Thierry Messer opened SPR-11685 and commented
AbstractHttpMessageConverter does no longer set the content type of the generated message. It's now always text/html.
This is due to the fact that in a servlet3 environment the class ServletServerHttpResponse uses the new inner class ServletResponseHttpHeaders rather than HttpHeaders.
ServletServerHttpResponse returns the header values of the wrapped HttpServletResponse unlike HttpHeaders which returns null.
This causes the AbstractHttpMessageConverter to not set the ContentType header.
Affects: 4.0.3
Issue Links:
- Truncated HTTP responses [SPR-8867] #13509 Truncated HTTP responses
- CORS for websocket breaks existing CORS Filter [SPR-11443] #16069 CORS for websocket breaks existing CORS Filter
- Improve Servlet 3 presence check in ServletServerHttpResponse [SPR-11712] #16334 Improve Servlet 3 presence check in ServletServerHttpResponse
1 votes, 4 watchers
Metadata
Metadata
Assignees
Labels
No labels