This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new 63b9fa9904 Fix back-port
63b9fa9904 is described below
commit 63b9fa990486607b14cddca8160a362c1dc2e682
Author: Mark Thomas <[email protected]>
AuthorDate: Fri Aug 4 19:21:46 2023 +0100
Fix back-port
---
test/org/apache/coyote/http2/TestAsyncError.java | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/test/org/apache/coyote/http2/TestAsyncError.java
b/test/org/apache/coyote/http2/TestAsyncError.java
index 176e410ded..a741bbd256 100644
--- a/test/org/apache/coyote/http2/TestAsyncError.java
+++ b/test/org/apache/coyote/http2/TestAsyncError.java
@@ -19,7 +19,6 @@ package org.apache.coyote.http2;
import java.io.IOException;
import java.io.PrintWriter;
import java.nio.ByteBuffer;
-import java.nio.charset.StandardCharsets;
import java.util.concurrent.atomic.AtomicInteger;
import jakarta.servlet.AsyncContext;
@@ -120,7 +119,7 @@ public class TestAsyncError extends Http2TestBase {
public void run() {
try {
resp.setContentType("text/plain");
- resp.setCharacterEncoding(StandardCharsets.UTF_8);
+ resp.setCharacterEncoding("UTF-8");
PrintWriter pw = resp.getWriter();
while (true) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]