Skip to content

Commit

Permalink
[ISSUE #3014]Replace encoding using the static variable DEFAULT_CHARS…
Browse files Browse the repository at this point in the history
…ET (#4776)
  • Loading branch information
zhenglin-charlie-li authored Feb 20, 2024
1 parent 9a3912a commit 5cc065f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ void post(HttpExchange httpExchange) {

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);
Expand Down

0 comments on commit 5cc065f

Please sign in to comment.