This is an automated email from the ASF dual-hosted git repository. markt 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 be81d3c Follow up to #479. Fix logic. Thanks to kkolinko review be81d3c is described below commit be81d3c6c089b3ff2c2c3346495332613b64950d Author: Mark Thomas <ma...@apache.org> 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 1295922..032225b 100644 --- a/java/org/apache/catalina/connector/Response.java +++ b/java/org/apache/catalina/connector/Response.java @@ -1367,7 +1367,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: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org