This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.1.x by this push:
new e5f3845426 Remove unnecessary code
e5f3845426 is described below
commit e5f3845426bfe2f63ed2f9d6dc6dace8d6051891
Author: Mark Thomas <[email protected]>
AuthorDate: Wed Apr 8 15:10:43 2026 +0100
Remove unnecessary code
---
java/org/apache/coyote/http2/Stream.java | 8 --------
1 file changed, 8 deletions(-)
diff --git a/java/org/apache/coyote/http2/Stream.java
b/java/org/apache/coyote/http2/Stream.java
index b6c92edbc8..f82949de8b 100644
--- a/java/org/apache/coyote/http2/Stream.java
+++ b/java/org/apache/coyote/http2/Stream.java
@@ -394,8 +394,6 @@ class Stream extends AbstractNonZeroStream implements
HeaderEmitter {
headerException = new StreamException(
sm.getString("stream.header.duplicate",
getConnectionId(), getIdAsString(), ":method"),
Http2Error.PROTOCOL_ERROR, getIdAsInt());
- // No need for further processing. The stream will be
reset.
- return;
}
break;
}
@@ -406,8 +404,6 @@ class Stream extends AbstractNonZeroStream implements
HeaderEmitter {
headerException = new StreamException(
sm.getString("stream.header.duplicate",
getConnectionId(), getIdAsString(), ":scheme"),
Http2Error.PROTOCOL_ERROR, getIdAsInt());
- // No need for further processing. The stream will be
reset.
- return;
}
break;
}
@@ -450,8 +446,6 @@ class Stream extends AbstractNonZeroStream implements
HeaderEmitter {
headerException = new StreamException(
sm.getString("stream.header.duplicate",
getConnectionId(), getIdAsString(), ":authority"),
Http2Error.PROTOCOL_ERROR, getIdAsInt());
- // No need for further processing. The stream will be
reset.
- return;
}
break;
}
@@ -480,8 +474,6 @@ class Stream extends AbstractNonZeroStream implements
HeaderEmitter {
headerException = new StreamException(
sm.getString("stream.header.duplicate",
getConnectionId(), getIdAsString(), "host"),
Http2Error.PROTOCOL_ERROR, getIdAsInt());
- // No need for further processing. The stream will be
reset.
- return;
}
break;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]