Alonexc commented on code in PR #3241: URL: https://github.com/apache/incubator-eventmesh/pull/3241#discussion_r1115186327
########## eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/admin/handler/ConfigurationHandler.java: ########## @@ -103,8 +103,9 @@ void get(HttpExchange httpExchange) throws IOException { ); String result = JsonUtils.toJSONString(getConfigurationResponse); - httpExchange.sendResponseHeaders(200, result.getBytes().length); - out.write(result.getBytes()); + byte bytes[] = result.getBytes(Constants.DEFAULT_CHARSET); Review Comment: Here should be: byte[] bytes = result.getBytes(Constants.DEFAULT_CHARSET) -- 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: dev-unsubscr...@eventmesh.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@eventmesh.apache.org For additional commands, e-mail: dev-h...@eventmesh.apache.org