This is an automated email from the ASF dual-hosted git repository.
markt-asf pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/main by this push:
new aa358b1187 Improve error handling for invalid settings header
aa358b1187 is described below
commit aa358b1187810d49058c73f8f510d0caf5d7e590
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 5824b24991..64014d37d1 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]