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 2022/08/24 10:52:33 UTC
[tomcat] branch main updated: Optimize comment
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 aef9666ed6 Optimize comment
aef9666ed6 is described below
commit aef9666ed608e70ff282c51aa72e53ea5664e5d2
Author: Poison <ti...@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 57ad601602..4349c8867e 100644
--- a/java/org/apache/catalina/connector/Response.java
+++ b/java/org/apache/catalina/connector/Response.java
@@ -1292,7 +1292,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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org