This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 9.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/9.0.x by this push:
new ee6a15d1d0 Fix back-port
ee6a15d1d0 is described below
commit ee6a15d1d068aaaa27b49e21c9bc7bca9cae4c28
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 0e9362fcee..38539e4790 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]