mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-23 22:59:03 +00:00
This commit adds a getContentAsString(Charset fallbackCharset) method to MockHttpServletResponse in order to make it easier to get the content in a specific charset like UTF-8 when the response charset has not been explicitly set (by default ISO-8859-1 is used). JsonPathResultMatchers leverages this new feature to support UTF-8 content out of the box. Closes gh-23219