Skip to content

Commit

Permalink
#212 fix the use of DMR - the proxy servlet wasn't sending the payloa…
Browse files Browse the repository at this point in the history
…d across :)
  • Loading branch information
jstrachan committed May 14, 2013
1 parent b983061 commit 1bfdbaa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hawtio-web/src/main/java/io/hawt/web/ProxyServlet.java
Expand Up @@ -246,7 +246,7 @@ private void handleStandardPost(PostMethod postMethodProxyRequest, HttpServletRe
String contentType = httpServletRequest.getContentType();
if (contentType != null) {
contentType = contentType.toLowerCase();
if (contentType.contains("json") || contentType.contains("xml")) {
if (contentType.contains("json") || contentType.contains("xml") || contentType.contains("application") || contentType.contains("text")) {
String body = IOHelper.readFully(httpServletRequest.getReader());
entity = new StringRequestEntity(body, contentType, httpServletRequest.getCharacterEncoding());
postMethodProxyRequest.setRequestEntity(entity);
Expand Down

0 comments on commit 1bfdbaa

Please sign in to comment.