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