activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hadr...@apache.org
Subject [20/20] git commit: AMQ-4668: REST API only accepts non-form content if content type of text/xml
Date Wed, 12 Mar 2014 02:21:46 GMT
AMQ-4668: REST API only accepts non-form content if content type of text/xml


Project: http://git-wip-us.apache.org/repos/asf/activemq/repo
Commit: http://git-wip-us.apache.org/repos/asf/activemq/commit/196f261e
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/196f261e
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/196f261e

Branch: refs/heads/activemq-5.9
Commit: 196f261ea04ac717cc2465fdebd58a14e521bd89
Parents: 702a006
Author: Claus Ibsen <claus.ibsen@gmail.com>
Authored: Fri Nov 1 18:04:35 2013 +0100
Committer: Hadrian Zbarcea <hadrian@apache.org>
Committed: Tue Mar 11 21:20:34 2014 -0400

----------------------------------------------------------------------
 .../main/java/org/apache/activemq/web/MessageServletSupport.java  | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/activemq/blob/196f261e/activemq-web/src/main/java/org/apache/activemq/web/MessageServletSupport.java
----------------------------------------------------------------------
diff --git a/activemq-web/src/main/java/org/apache/activemq/web/MessageServletSupport.java
b/activemq-web/src/main/java/org/apache/activemq/web/MessageServletSupport.java
index 5b07102..8529896 100644
--- a/activemq-web/src/main/java/org/apache/activemq/web/MessageServletSupport.java
+++ b/activemq-web/src/main/java/org/apache/activemq/web/MessageServletSupport.java
@@ -341,7 +341,8 @@ public abstract class MessageServletSupport extends HttpServlet {
     protected String getPostedMessageBody(HttpServletRequest request) throws IOException
{
         String answer = request.getParameter(bodyParameter);
         String contentType = request.getContentType();
-        if (answer == null && contentType != null && contentType.toLowerCase().startsWith("text/xml"))
{
+        if (answer == null && contentType != null) {
+            LOG.debug("Content-Type={}", contentType);
             // lets read the message body instead
             BufferedReader reader = request.getReader();
             StringBuffer buffer = new StringBuffer();


Mime
View raw message