This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 8.5.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/8.5.x by this push:
new ff54530 Follow up to #479. Fix logic. Thanks to kkolinko review
ff54530 is described below
commit ff54530284bcf4363743dbd6383361c2300c2884
Author: Mark Thomas <[email protected]>
AuthorDate: Tue Mar 8 10:57:33 2022 +0000
Follow up to #479. Fix logic. Thanks to kkolinko review
---
java/org/apache/catalina/connector/Response.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/java/org/apache/catalina/connector/Response.java
b/java/org/apache/catalina/connector/Response.java
index d0010bf..e0f320f 100644
--- a/java/org/apache/catalina/connector/Response.java
+++ b/java/org/apache/catalina/connector/Response.java
@@ -1362,7 +1362,7 @@ public class Response implements HttpServletResponse {
// If no ROOT context is defined, the context can be null.
// In this case, the default Tomcat values are assumed, but without
// reference to org.apache.catalina.STRICT_SERVLET_COMPLIANCE.
- boolean reqHasContext = context == null;
+ boolean reqHasContext = (context != null);
String locationUri;
// Relative redirects require HTTP/1.1
if (getRequest().getCoyoteRequest().getSupportsRelativeRedirects()
&&
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]