Skip to content

Commit 7a75eb0

Browse files
committed
适配最新版
1 parent ba1ef1b commit 7a75eb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

frameworks/Java/smart-socket/src/main/java/org/smartboot/http/FeatController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public byte[] plaintext(HttpResponse response) {
1818

1919
@RequestMapping("/json")
2020
public Message json(HttpResponse response) {
21-
response.setContentType(HeaderValueEnum.ContentType.TEXT_PLAIN_UTF8);
21+
response.setContentType(HeaderValueEnum.ContentType.APPLICATION_JSON_UTF8);
2222
return new Message("Hello, World!");
2323
}
2424
}

0 commit comments

Comments
 (0)