Skip to content

Commit a4c5705

Browse files
committed
Align test with updated redirect code
1 parent e854af7 commit a4c5705

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/org/apache/catalina/valves/TestLoadBalancerDrainingValve.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,7 @@ public void runValve() throws Exception {
166166
if (null != queryString) {
167167
expectedRequestURI = expectedRequestURI + '?' + queryString;
168168
}
169-
response.setHeader("Location", expectedRequestURI);
170-
response.setStatus(307);
169+
response.sendRedirect(expectedRequestURI, 307);
171170
}
172171
}
173172

0 commit comments

Comments
 (0)