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:44 UTC

(tomcat) branch 11.0.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 11.0.x
in repository https://gitbox.apache.org/repos/asf/tomcat.git


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

commit 0ac2126609a6b6340cd548ca043774519d9452ef
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 55e6a43c48..d2b1e9195a 100644
--- a/java/org/apache/catalina/servlets/DefaultServlet.java
+++ b/java/org/apache/catalina/servlets/DefaultServlet.java
@@ -417,6 +417,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