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:15:58 UTC

(tomcat) branch main 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 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 a4c570570d Align test with updated redirect code
a4c570570d is described below

commit a4c570570d24852bef2c6eccda047e1c9a7bb08f
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