Merge branch 'BF-2757' of /home/git/repositories/brainfood/ofbiz-directcontrolservlet
Showing
1 changed file
with
0 additions
and
4 deletions
... | @@ -119,7 +119,6 @@ public class DirectControlServlet extends HttpServlet { | ... | @@ -119,7 +119,6 @@ public class DirectControlServlet extends HttpServlet { |
119 | Debug.logInfo("PARAMETERS: " + paramList, module); | 119 | Debug.logInfo("PARAMETERS: " + paramList, module); |
120 | // Handle if this is a form post | 120 | // Handle if this is a form post |
121 | String contentType = request.getContentType(); | 121 | String contentType = request.getContentType(); |
122 | if (contentType != null && contentType.indexOf("x-www-form-urlencoded") != -1) { | ||
123 | method = request.getParameter("_method"); | 122 | method = request.getParameter("_method"); |
124 | String httpMethod = request.getMethod(); | 123 | String httpMethod = request.getMethod(); |
125 | if (method == null && httpMethod != null) method = httpMethod; | 124 | if (method == null && httpMethod != null) method = httpMethod; |
... | @@ -146,9 +145,6 @@ public class DirectControlServlet extends HttpServlet { | ... | @@ -146,9 +145,6 @@ public class DirectControlServlet extends HttpServlet { |
146 | } | 145 | } |
147 | } | 146 | } |
148 | } | 147 | } |
149 | } else { | ||
150 | Debug.logInfo("Unsupported form encoding", module); | ||
151 | } | ||
152 | 148 | ||
153 | // If there is a mapping for this pathInfo, run the corresponding service | 149 | // If there is a mapping for this pathInfo, run the corresponding service |
154 | // otherwise, return an error | 150 | // otherwise, return an error | ... | ... |
-
Please register or sign in to post a comment