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

markt 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 81e53ba459 Remove unnecessary code
81e53ba459 is described below

commit 81e53ba4594636082810e08a2128ae7ca972d109
Author: Mark Thomas <[email protected]>
AuthorDate: Wed Apr 1 17:53:19 2026 +0100

    Remove unnecessary code
---
 java/org/apache/coyote/http2/Stream.java | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/java/org/apache/coyote/http2/Stream.java 
b/java/org/apache/coyote/http2/Stream.java
index b9068e185e..8d682099ff 100644
--- a/java/org/apache/coyote/http2/Stream.java
+++ b/java/org/apache/coyote/http2/Stream.java
@@ -548,8 +548,6 @@ class Stream extends AbstractNonZeroStream implements 
HeaderEmitter {
             headerException = new StreamException(
                     sm.getString("stream.host.sni", getConnectionId(), 
getIdAsString(), value, handler.getSniHostName()),
                     Http2Error.PROTOCOL_ERROR, getIdAsInt());
-            // No need for further processing. The stream will be reset.
-            return;
         }
     }
 
@@ -567,8 +565,6 @@ class Stream extends AbstractNonZeroStream implements 
HeaderEmitter {
                         sm.getString("stream.host.inconsistent", 
getConnectionId(), getIdAsString(), value,
                                 coyoteRequest.serverName().getString(), 
Integer.toString(coyoteRequest.getServerPort())),
                         Http2Error.PROTOCOL_ERROR, getIdAsInt());
-                // No need for further processing. The stream will be reset.
-                return;
             }
         } catch (IllegalArgumentException iae) {
             // Bad :authority / host header -> 400 response


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

Reply via email to