enabled compressed json output for app
This commit is contained in:
parent
cb0b1d8855
commit
03bbbcfc0c
1 changed files with 1 additions and 1 deletions
|
@ -100,7 +100,7 @@ public class BRouterService extends Service {
|
||||||
boolean canCompress = "true".equals(params.getString("acceptCompressedResult"));
|
boolean canCompress = "true".equals(params.getString("acceptCompressedResult"));
|
||||||
try {
|
try {
|
||||||
String gpxMessage = worker.getTrackFromParams(params);
|
String gpxMessage = worker.getTrackFromParams(params);
|
||||||
if (canCompress && gpxMessage.startsWith("<")) {
|
if (canCompress) {
|
||||||
try {
|
try {
|
||||||
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
ByteArrayOutputStream baos = new ByteArrayOutputStream();
|
||||||
baos.write("z64".getBytes(Charset.forName("UTF-8"))); // marker prefix
|
baos.write("z64".getBytes(Charset.forName("UTF-8"))); // marker prefix
|
||||||
|
|
Loading…
Reference in a new issue