You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by ma...@apache.org on 2026/03/12 13:16:03 UTC

(tomcat) branch 11.0.x updated: Align test with updated redirect code

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

markt pushed a commit to branch 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/11.0.x by this push:
     new 88db337fc0 Align test with updated redirect code
88db337fc0 is described below

commit 88db337fc0c9f2e583c307d99c09bfc781734019
Author: Mark Thomas <ma...@apache.org>
AuthorDate: Thu Mar 12 13:15:31 2026 +0000

    Align test with updated redirect code
---
 test/org/apache/catalina/valves/TestLoadBalancerDrainingValve.java | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/test/org/apache/catalina/valves/TestLoadBalancerDrainingValve.java b/test/org/apache/catalina/valves/TestLoadBalancerDrainingValve.java
index b2b1fa0683..20211da96e 100644
--- a/test/org/apache/catalina/valves/TestLoadBalancerDrainingValve.java
+++ b/test/org/apache/catalina/valves/TestLoadBalancerDrainingValve.java
@@ -166,8 +166,7 @@ public class TestLoadBalancerDrainingValve {
                 if (null != queryString) {
                     expectedRequestURI = expectedRequestURI + '?' + queryString;
                 }
-                response.setHeader("Location", expectedRequestURI);
-                response.setStatus(307);
+                response.sendRedirect(expectedRequestURI, 307);
             }
         }
 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org