aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/BasePipelineFactory.java
diff options
context:
space:
mode:
authornativbarak <nativ@globekeeper.com>2018-02-04 17:12:51 +0200
committernativbarak <nativ@globekeeper.com>2018-02-04 17:12:51 +0200
commitdc092138fc69bb5f8f137be435309d3945c49b13 (patch)
treeb3aa19f250ea15725ec02743d448d14167bb2ae4 /src/org/traccar/BasePipelineFactory.java
parent377a2234ef8c25c54c22acf9db36d102347e0ad4 (diff)
downloadtrackermap-server-dc092138fc69bb5f8f137be435309d3945c49b13.tar.gz
trackermap-server-dc092138fc69bb5f8f137be435309d3945c49b13.tar.bz2
trackermap-server-dc092138fc69bb5f8f137be435309d3945c49b13.zip
Fixed length on basepipelinefactory
Diffstat (limited to 'src/org/traccar/BasePipelineFactory.java')
-rw-r--r--src/org/traccar/BasePipelineFactory.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/org/traccar/BasePipelineFactory.java b/src/org/traccar/BasePipelineFactory.java
index e8034779d..4407caae4 100644
--- a/src/org/traccar/BasePipelineFactory.java
+++ b/src/org/traccar/BasePipelineFactory.java
@@ -238,7 +238,9 @@ public abstract class BasePipelineFactory implements ChannelPipelineFactory {
}
if (Context.getConfig().getBoolean("forward.enable")) {
- pipeline.addLast("webHandler", new WebDataHandler(Context.getConfig().getString("forward.url"), Context.getConfig().getBoolean("forward.json")));
+ final Boolean json = Context.getConfig().getBoolean("forward.json");
+ final String url = Context.getConfig().getString("forward.url");
+ pipeline.addLast("webHandler", new WebDataHandler(url, json));
}
if (commandResultEventHandler != null) {