Skip to content

Commit 69ce7d3

Browse files
committed
Polishing
1 parent e36d416 commit 69ce7d3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-web/src/main/java/org/springframework/http/codec/multipart/MultipartWriterSupport.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ protected MediaType getMultipartMediaType(@Nullable MediaType mediaType, byte[]
118118
Charset charset = getCharset();
119119
if (!charset.equals(StandardCharsets.UTF_8) &&
120120
!charset.equals(StandardCharsets.US_ASCII) ) {
121-
params.put("charset", getCharset().name());
121+
params.put("charset", charset.name());
122122
}
123123

124124
mediaType = (mediaType != null ? mediaType : MediaType.MULTIPART_FORM_DATA);

0 commit comments

Comments
 (0)