aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-04-03 23:07:29 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-04-03 23:07:29 +1200
commitd71da7263744e0f42e8ccdd490597dae5a542cd8 (patch)
tree06af8f9eabe3a838b2b2f022358d22db9303172d /src/org/traccar
parent72dc597437b0377fb060ef8d26aba404c62e73e2 (diff)
downloadtrackermap-server-d71da7263744e0f42e8ccdd490597dae5a542cd8.tar.gz
trackermap-server-d71da7263744e0f42e8ccdd490597dae5a542cd8.tar.bz2
trackermap-server-d71da7263744e0f42e8ccdd490597dae5a542cd8.zip
Add name to forwarding handler (fix #1848)
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/WebDataHandler.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/org/traccar/WebDataHandler.java b/src/org/traccar/WebDataHandler.java
index cc60af248..7f241b3d9 100644
--- a/src/org/traccar/WebDataHandler.java
+++ b/src/org/traccar/WebDataHandler.java
@@ -96,6 +96,7 @@ public class WebDataHandler extends BaseDataHandler {
String attributes = MiscFormatter.toJsonString(position.getAttributes());
String request = url
+ .replace("{name}", device.getName())
.replace("{uniqueId}", device.getUniqueId())
.replace("{deviceId}", String.valueOf(position.getDeviceId()))
.replace("{protocol}", String.valueOf(position.getProtocol()))