This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/11.0.x by this push:
new dd4d54ab4f Improve error handling for invalid settings header
dd4d54ab4f is described below
commit dd4d54ab4f58196c8cbfd2d78c1a5aa5a999a0b2
Author: Mark Thomas <[email protected]>
AuthorDate: Thu May 21 12:03:06 2026 +0100
Improve error handling for invalid settings header
---
java/org/apache/coyote/http2/Http2UpgradeHandler.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/java/org/apache/coyote/http2/Http2UpgradeHandler.java
b/java/org/apache/coyote/http2/Http2UpgradeHandler.java
index 90a20e2546..e69cbbdb56 100644
--- a/java/org/apache/coyote/http2/Http2UpgradeHandler.java
+++ b/java/org/apache/coyote/http2/Http2UpgradeHandler.java
@@ -293,8 +293,8 @@ class Http2UpgradeHandler extends AbstractStream implements
InternalHttpUpgradeH
}
remoteSettings.set(key, value);
}
- } catch (Http2Exception e) {
- throw new
ProtocolException(sm.getString("upgradeHandler.upgrade.fail", connectionId));
+ } catch (IllegalArgumentException | Http2Exception e) {
+ throw new
ProtocolException(sm.getString("upgradeHandler.upgrade.fail", connectionId), e);
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]