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 a51516e6b7 Skip processing when not required
a51516e6b7 is described below

commit a51516e6b7121ade6cf212ecf20406a7cecfc54f
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 983fc2f53f..200a90cc5e 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