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 a11088af52 Improve error handling for invalid settings header
a11088af52 is described below

commit a11088af521e8d4427e419e81af200bbf7b1b4b7
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 a883d3bded..eeb89854fa 100644
--- a/java/org/apache/coyote/http2/Http2UpgradeHandler.java
+++ b/java/org/apache/coyote/http2/Http2UpgradeHandler.java
@@ -291,8 +291,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]

Reply via email to