Rename MimeType's getCharSet() to getCharset()
Issue: SPR-14172
This commit is contained in:
@@ -390,8 +390,8 @@ public class MockHttpServletRequest implements HttpServletRequest {
|
||||
if (contentType != null) {
|
||||
try {
|
||||
MediaType mediaType = MediaType.parseMediaType(contentType);
|
||||
if (mediaType.getCharSet() != null) {
|
||||
this.characterEncoding = mediaType.getCharSet().name();
|
||||
if (mediaType.getCharset() != null) {
|
||||
this.characterEncoding = mediaType.getCharset().name();
|
||||
}
|
||||
}
|
||||
catch (Exception ex) {
|
||||
|
||||
@@ -236,8 +236,8 @@ public class MockHttpServletResponse implements HttpServletResponse {
|
||||
if (contentType != null) {
|
||||
try {
|
||||
MediaType mediaType = MediaType.parseMediaType(contentType);
|
||||
if (mediaType.getCharSet() != null) {
|
||||
this.characterEncoding = mediaType.getCharSet().name();
|
||||
if (mediaType.getCharset() != null) {
|
||||
this.characterEncoding = mediaType.getCharset().name();
|
||||
this.charset = true;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user