This is an automated email from the ASF dual-hosted git repository.
mxsm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/eventmesh.git
The following commit(s) were added to refs/heads/master by this push:
new 5cc065f1a [ISSUE #3014]Replace encoding using the static variable
DEFAULT_CHARSET (#4776)
5cc065f1a is described below
commit 5cc065f1a29d7827a5243d81c32722e0cc85ebc9
Author: ZHENGLIN LI <[email protected]>
AuthorDate: Mon Feb 19 21:16:53 2024 -0600
[ISSUE #3014]Replace encoding using the static variable DEFAULT_CHARSET
(#4776)
---
.../java/org/apache/eventmesh/runtime/admin/handler/EventHandler.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/admin/handler/EventHandler.java
b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/admin/handler/EventHandler.java
index 5646cea5a..f4358f997 100644
---
a/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/admin/handler/EventHandler.java
+++
b/eventmesh-runtime/src/main/java/org/apache/eventmesh/runtime/admin/handler/EventHandler.java
@@ -197,7 +197,7 @@ public class EventHandler extends AbstractHttpHandler {
try {
String request =
HttpExchangeUtils.streamToString(httpExchange.getRequestBody());
- byte[] rawRequest = request.getBytes(StandardCharsets.UTF_8);
+ byte[] rawRequest = request.getBytes(Constants.DEFAULT_CHARSET);
CloudEvent event = Objects.requireNonNull(EventFormatProvider
.getInstance()
.resolveFormat(JsonFormat.CONTENT_TYPE)).deserialize(rawRequest);
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]