activemq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject git commit: AMQ-4668: REST API only accepts non-form content if content type of text/xml
Date Sat, 02 Nov 2013 10:44:01 GMT
Updated Branches:
  refs/heads/trunk 190da2969 -> 70e2b998d


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/70e2b998
Tree: http://git-wip-us.apache.org/repos/asf/activemq/tree/70e2b998
Diff: http://git-wip-us.apache.org/repos/asf/activemq/diff/70e2b998

Branch: refs/heads/trunk
Commit: 70e2b998d2941b4568e8da54bc1fed851b602d77
Parents: 190da29
Author: Claus Ibsen <claus.ibsen@gmail.com>
Authored: Fri Nov 1 18:04:35 2013 +0100
Committer: Claus Ibsen <claus.ibsen@gmail.com>
Committed: Sat Nov 2 11:44:44 2013 +0100

----------------------------------------------------------------------
 .../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/70e2b998/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