fix: economical JSON
This commit is contained in:
@@ -649,7 +649,7 @@ public class MainVerticle extends AbstractVerticle {
|
||||
rc.response()
|
||||
.putHeader("Content-Type", "application/json")
|
||||
.putHeader("Content-Disposition", "attachment; filename=olap_export.json")
|
||||
.end(fullJson.encodePrettily());
|
||||
.end(fullJson.encode());
|
||||
});
|
||||
|
||||
return router;
|
||||
|
||||
@@ -41,7 +41,7 @@ public class IikoHandler {
|
||||
getAllFieldsWithReportAndTags()
|
||||
.onSuccess(ar -> ctx.response()
|
||||
.putHeader("Content-Type", "application/json")
|
||||
.end(ar.encodePrettily()))
|
||||
.end(ar.encode()))
|
||||
.onFailure(err -> ctx.response()
|
||||
.setStatusCode(500)
|
||||
.end(err.getMessage()));
|
||||
|
||||
Reference in New Issue
Block a user