Navigation Menu

Skip to content

Commit

Permalink
#212 specify dataType, contentType just in case...
Browse files Browse the repository at this point in the history
  • Loading branch information
jstrachan committed May 14, 2013
1 parent ec6bb95 commit 15e3c58
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion hawtio-web/src/main/webapp/app/jboss/js/dmr.ts
Expand Up @@ -17,11 +17,17 @@ module JBoss {
var format = "application/dmr-encoded";
if (isDmr) {
// create an operation
/*
var op = new dmr.ModelNode();
//op.get("operation").set("read-resource");
op.get("operation").set("read-attribute");
op.get("address").setEmptyList();
op.get("name").set("release-version");
*/
var op = new dmr.ModelNode();
op.get("operation").set("read-attribute");
op.get("address").setEmptyList();
op.get("name").set("release-version");

data = op.toBase64String();
} else {
Expand All @@ -37,9 +43,9 @@ module JBoss {
$.ajax({
url: url,
data: data,
dataType: "text",
processData: false,
type: "POST",
dataType: "text",
contentType: format,
accepts: format,
headers: {
Expand Down

0 comments on commit 15e3c58

Please sign in to comment.