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 6feca44d10 Optimize comment
6feca44d10 is described below

commit 6feca44d1064a1ad4f2cb868b5d4070ea4208ce3
Author: Poison <tianshuang...@gmail.com>
AuthorDate: Thu Aug 18 14:07:26 2022 +0800

    Optimize comment
    
    HTTP2 also supports relative redirects.
---
 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 6d22590cb6..7b6cfb3ff1 100644
--- a/java/org/apache/catalina/connector/Response.java
+++ b/java/org/apache/catalina/connector/Response.java
@@ -1368,7 +1368,7 @@ public class Response implements HttpServletResponse {
             // In this case, the default Tomcat values are assumed, but without
             // reference to org.apache.catalina.STRICT_SERVLET_COMPLIANCE.
             String locationUri;
-            // Relative redirects require HTTP/1.1
+            // Relative redirects require HTTP/1.1 or later
             if (getRequest().getCoyoteRequest().getSupportsRelativeRedirects() 
&&
                     (context == null || context.getUseRelativeRedirects())) {
                 locationUri = location;


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

Reply via email to