mirror of
https://github.com/apache/activemq.git
synced 2025-02-12 21:16:06 +00:00
AMQ-4856: Use application/xml as content-type in web servlet. Thanks to Fernando Ribeiro for the patch.
This commit is contained in:
parent
f7e38f5666
commit
4592ccb5d4
@ -62,7 +62,7 @@ public class MessageServlet extends MessageServletSupport {
|
||||
private long defaultReadTimeout = -1;
|
||||
private long maximumReadTimeout = 20000;
|
||||
private long requestTimeout = 1000;
|
||||
private String defaultContentType = "text/xml";
|
||||
private String defaultContentType = "application/xml";
|
||||
|
||||
private final HashMap<String, WebClient> clients = new HashMap<String, WebClient>();
|
||||
|
||||
@ -323,7 +323,7 @@ public class MessageServlet extends MessageServletSupport {
|
||||
protected String getContentType(HttpServletRequest request) {
|
||||
String value = request.getParameter("xml");
|
||||
if (value != null && "true".equalsIgnoreCase(value)) {
|
||||
return "text/xml";
|
||||
return "application/xml";
|
||||
}
|
||||
value = request.getParameter("json");
|
||||
if (value != null && "true".equalsIgnoreCase(value)) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user