Skip to content

Commit

Permalink
Merge pull request #627 from kabir/jbug-preparation
Browse files Browse the repository at this point in the history
JBug preparation
  • Loading branch information
kabir committed Apr 21, 2015
2 parents bfa9259 + ff06497 commit b389cc2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 97 deletions.
Expand Up @@ -144,13 +144,7 @@ public void handleRequest(final HttpServerExchange exchange) {
dmr = convertPostRequest(exchange, encode);
cachable = false;
}
boolean pretty = false;
if (dmr.hasDefined(JSON_PRETTY)) {
String jsonPretty = dmr.get(JSON_PRETTY).asString();
pretty = "true".equalsIgnoreCase(jsonPretty) || "1".equals(jsonPretty);

}
operationParameterBuilder.pretty(pretty);
operationParameterBuilder.pretty(dmr.hasDefined("json.pretty") && dmr.get("json.pretty").asBoolean());
} catch (Exception e) {
ROOT_LOGGER.debugf("Unable to construct ModelNode '%s'", e.getMessage());
Common.sendError(exchange, false, e.toString());
Expand Down

This file was deleted.

0 comments on commit b389cc2

Please sign in to comment.