aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/BasePipelineFactory.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2019-02-20 22:54:58 -0800
committerAnton Tananaev <anton.tananaev@gmail.com>2019-02-20 22:54:58 -0800
commitcb4ba475c71cd83a2bde40938216b55e8f686207 (patch)
tree30b4c8050a65d5e962249dd2d1ad049fc4bd229d /src/org/traccar/BasePipelineFactory.java
parent81d4920ba7e45d762f7e276195b9b085e88249a4 (diff)
downloadtrackermap-server-cb4ba475c71cd83a2bde40938216b55e8f686207.tar.gz
trackermap-server-cb4ba475c71cd83a2bde40938216b55e8f686207.tar.bz2
trackermap-server-cb4ba475c71cd83a2bde40938216b55e8f686207.zip
Support headers for forwarding
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 b45e3a280..517b92bbf 100644
--- a/src/org/traccar/BasePipelineFactory.java
+++ b/src/org/traccar/BasePipelineFactory.java
@@ -317,7 +317,9 @@ public abstract class BasePipelineFactory extends ChannelInitializer<Channel> {
if (Context.getConfig().getBoolean("forward.enable")) {
pipeline.addLast(Main.getInjector().getInstance(WebDataHandler.Factory.class).create(
- Context.getConfig().getString("forward.url"), Context.getConfig().getBoolean("forward.json")));
+ Context.getConfig().getString("forward.url"),
+ Context.getConfig().getString("forward.header"),
+ Context.getConfig().getBoolean("forward.json")));
}
addHandlers(