This is an automated email from the ASF dual-hosted git repository.

markt-asf 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 739a37d113 Fix back-port
739a37d113 is described below

commit 739a37d1134c50684af83d5e70e2da884dce6940
Author: Mark Thomas <[email protected]>
AuthorDate: Tue Oct 27 08:22:11 2026 +0000

    Fix back-port
---
 java/org/apache/coyote/http2/Http2AsyncParser.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/java/org/apache/coyote/http2/Http2AsyncParser.java 
b/java/org/apache/coyote/http2/Http2AsyncParser.java
index f5ec35a8ad..1615ec7cc7 100644
--- a/java/org/apache/coyote/http2/Http2AsyncParser.java
+++ b/java/org/apache/coyote/http2/Http2AsyncParser.java
@@ -127,7 +127,7 @@ class Http2AsyncParser extends Http2Parser {
                  * Use the error code of the HTTP/2 error, if there is one, so 
that the client is told why the
                  * connection is being closed.
                  */
-                upgradeHandler.closeConnection(error instanceof Http2Exception 
http2Exception ? http2Exception :
+                upgradeHandler.closeConnection(error instanceof Http2Exception 
? (Http2Exception) error :
                         new ConnectionException(error.getMessage(), 
Http2Error.PROTOCOL_ERROR, error));
             }
             // Continue reading frames


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to