Skip to content

Commit 05c493e

Browse files
committed
add TEXT_JSON
1 parent 1a68061 commit 05c493e

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

easywebframework/src/main/java/com/openthinks/easyweb/annotation/ResponseReturn.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@ String charset()
2929
ResponseReturnType contentType() default ResponseReturnType.TEXT_PLAN;
3030

3131
public enum ResponseReturnType {
32-
TEXT_PLAN("text/plain"), TEXT_HTML("text/html"), TEXT_XML("text/xml"), TEXT_JAVASCRIPT("text/javascript");
32+
TEXT_PLAN("text/plain"), TEXT_HTML("text/html"), TEXT_XML("text/xml"), TEXT_JSON("text/json"), TEXT_JAVASCRIPT(
33+
"text/javascript");
3334
private String value;
3435

3536
private ResponseReturnType(String value) {

0 commit comments

Comments
 (0)