Skip to content

Commit a65c6f6

Browse files
committed
Fix APPLICATION_PROBLEM_JSON_UTF8 media type value
This commit adds the missing "+json" suffix to the "application/problem" media type for its deprecated UTF-8 variant. Fixes gh-23825
1 parent d1aee0e commit a65c6f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-web/src/main/java/org/springframework/http/MediaType.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ public class MediaType extends MimeType implements Serializable {
370370
APPLICATION_OCTET_STREAM = new MediaType("application", "octet-stream");
371371
APPLICATION_PDF = new MediaType("application", "pdf");
372372
APPLICATION_PROBLEM_JSON = new MediaType("application", "problem+json");
373-
APPLICATION_PROBLEM_JSON_UTF8 = new MediaType("application", "problem", StandardCharsets.UTF_8);
373+
APPLICATION_PROBLEM_JSON_UTF8 = new MediaType("application", "problem+json", StandardCharsets.UTF_8);
374374
APPLICATION_PROBLEM_XML = new MediaType("application", "problem+xml");
375375
APPLICATION_RSS_XML = new MediaType("application", "rss+xml");
376376
APPLICATION_STREAM_JSON = new MediaType("application", "stream+json");

0 commit comments

Comments
 (0)