diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2019-02-20 22:54:58 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2019-02-20 22:54:58 -0800 |
commit | cb4ba475c71cd83a2bde40938216b55e8f686207 (patch) | |
tree | 30b4c8050a65d5e962249dd2d1ad049fc4bd229d /src/org/traccar/BasePipelineFactory.java | |
parent | 81d4920ba7e45d762f7e276195b9b085e88249a4 (diff) | |
download | traccar-server-cb4ba475c71cd83a2bde40938216b55e8f686207.tar.gz traccar-server-cb4ba475c71cd83a2bde40938216b55e8f686207.tar.bz2 traccar-server-cb4ba475c71cd83a2bde40938216b55e8f686207.zip |
Support headers for forwarding
Diffstat (limited to 'src/org/traccar/BasePipelineFactory.java')
-rw-r--r-- | src/org/traccar/BasePipelineFactory.java | 4 |
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( |