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 2025/03/20 16:53:59 UTC

(tomcat) branch 10.1.x updated: Add missing logic to set the allowPostAsGet initialisation parameter

This is an automated email from the ASF dual-hosted git repository.

markt pushed a commit to branch 10.1.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


The following commit(s) were added to refs/heads/10.1.x by this push:
     new daa0de18ea Add missing logic to set the allowPostAsGet initialisation parameter
daa0de18ea is described below

commit daa0de18ea8eace2bf702ef14729e98f36fe44f5
Author: Mark Thomas <ma...@apache.org>
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 4698fee9fb..48a34d0b39 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: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org