You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by GitBox <gi...@apache.org> on 2022/12/19 06:09:00 UTC

[GitHub] [shenyu] yu199195 commented on a diff in pull request #4266: ShenyuResult MediaType.APPLICATION_JSON_UTF8

yu199195 commented on code in PR #4266:
URL: https://github.com/apache/shenyu/pull/4266#discussion_r1051840237


##########
shenyu-plugin/shenyu-plugin-api/src/main/java/org/apache/shenyu/plugin/api/result/ShenyuResult.java:
##########
@@ -70,7 +70,7 @@ default MediaType contentType(ServerWebExchange exchange, Object formatted) {
         if (Objects.nonNull(clientResponse) && clientResponse.headers().contentType().isPresent()) {
             return clientResponse.headers().contentType().get();
         }
-        return MediaType.APPLICATION_JSON;
+        return MediaType.APPLICATION_JSON_UTF8;

Review Comment:
   Are they different, can they be dynamically configured or returned based on front-end incoming?



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org