This is an automated email from the ASF dual-hosted git repository.
markt 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 5b3f8932ff Remove unnecessary code
5b3f8932ff is described below
commit 5b3f8932ff5e2c0db36e946c7d22eba2c9412a56
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 e7c0d23531..d747fe7b1b 100644
--- a/java/org/apache/coyote/http2/Stream.java
+++ b/java/org/apache/coyote/http2/Stream.java
@@ -545,8 +545,6 @@ class Stream extends AbstractNonZeroStream implements
HeaderEmitter {
headerException = new StreamException(
sm.getString("stream.host.sni", getConnectionId(),
getIdAsString(), value),
Http2Error.PROTOCOL_ERROR, getIdAsInt());
- // No need for further processing. The stream will be reset.
- return;
}
}
@@ -564,8 +562,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]