This is an automated email from the ASF dual-hosted git repository.
markt pushed a commit to branch 10.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git
The following commit(s) were added to refs/heads/10.0.x by this push:
new dec782b578 Optimize comment
dec782b578 is described below
commit dec782b578eec639fab7f5724fe296f61c53d4fb
Author: Poison <[email protected]>
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 4fdeb704a8..aab67a7022 100644
--- a/java/org/apache/catalina/connector/Response.java
+++ b/java/org/apache/catalina/connector/Response.java
@@ -1329,7 +1329,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: [email protected]
For additional commands, e-mail: [email protected]