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

markt-asf 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 3747d6c787 Skip processing when not required
3747d6c787 is described below

commit 3747d6c787cba377eafa580f8bff5482e9755fd2
Author: Mark Thomas <[email protected]>
AuthorDate: Tue Oct 27 14:17:47 2026 +0000

    Skip processing when not required
---
 java/org/apache/catalina/valves/rewrite/RewriteValve.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/java/org/apache/catalina/valves/rewrite/RewriteValve.java 
b/java/org/apache/catalina/valves/rewrite/RewriteValve.java
index 7e2cfe51ff..71511b5499 100644
--- a/java/org/apache/catalina/valves/rewrite/RewriteValve.java
+++ b/java/org/apache/catalina/valves/rewrite/RewriteValve.java
@@ -659,7 +659,7 @@ public class RewriteValve extends ValveBase {
                     request.setAsyncSupported(pipeline.isAsyncSupported());
                     pipeline.getFirst().invoke(request, response);
                 }
-            } else {
+            } else if (!done) {
                 Valve next = getNext();
                 if (valveSkip) {
                     next = next.getNext();


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

Reply via email to