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 d781554e43 Add missing logic to set the allowPostAsGet initialisation
parameter
d781554e43 is described below
commit d781554e43a50eb19a67c4ddfd397c789ebb428d
Author: Mark Thomas <[email protected]>
AuthorDate: Thu Mar 20 16:53:37 2025 +0000
Add missing logic to set the allowPostAsGet initialisation parameter
---
java/org/apache/catalina/servlets/DefaultServlet.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/java/org/apache/catalina/servlets/DefaultServlet.java
b/java/org/apache/catalina/servlets/DefaultServlet.java
index a3fd00fd88..8104874193 100644
--- a/java/org/apache/catalina/servlets/DefaultServlet.java
+++ b/java/org/apache/catalina/servlets/DefaultServlet.java
@@ -425,6 +425,9 @@ public class DefaultServlet extends HttpServlet {
useStrongETags =
Boolean.parseBoolean(getServletConfig().getInitParameter("useStrongETags"));
}
+ if (getServletConfig().getInitParameter("allowPostAsGet") != null) {
+ allowPostAsGet =
Boolean.parseBoolean(getServletConfig().getInitParameter("allowPostAsGet"));
+ }
}
private CompressionFormat[] parseCompressionFormats(String precompressed,
String gzip) {
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]