Skip to content

Commit 5cc065f

Browse files
[ISSUE #3014]Replace encoding using the static variable DEFAULT_CHARSET (#4776)
1 parent 9a3912a commit 5cc065f

File tree

1 file changed

+1
-1
lines changed
  • eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/admin/handler

1 file changed

+1
-1
lines changed

Diff for: eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/admin/handler/EventHandler.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ void post(HttpExchange httpExchange) {
197197

198198
try {
199199
String request = HttpExchangeUtils.streamToString(httpExchange.getRequestBody());
200-
byte[] rawRequest = request.getBytes(StandardCharsets.UTF_8);
200+
byte[] rawRequest = request.getBytes(Constants.DEFAULT_CHARSET);
201201
CloudEvent event = Objects.requireNonNull(EventFormatProvider
202202
.getInstance()
203203
.resolveFormat(JsonFormat.CONTENT_TYPE)).deserialize(rawRequest);

0 commit comments

Comments
 (0)