aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJan-Piet Mens <jpmens@gmail.com>2017-06-16 12:36:14 +0200
committerJan-Piet Mens <jpmens@gmail.com>2017-06-16 12:36:14 +0200
commitf740328ee029fa5cab1d83f8849a04c58f6f0be2 (patch)
tree21be0e589b7cdb909c53e79a8c2fc7c877abda43 /src
parentfe4ea97dabc55c4585d8b32bd4dae32cd255add3 (diff)
downloadtrackermap-server-f740328ee029fa5cab1d83f8849a04c58f6f0be2.tar.gz
trackermap-server-f740328ee029fa5cab1d83f8849a04c58f6f0be2.tar.bz2
trackermap-server-f740328ee029fa5cab1d83f8849a04c58f6f0be2.zip
Correctly ignore OwnTracks publishes of type != location
Diffstat (limited to 'src')
-rw-r--r--src/org/traccar/protocol/OwnTracksProtocolDecoder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/protocol/OwnTracksProtocolDecoder.java b/src/org/traccar/protocol/OwnTracksProtocolDecoder.java
index ea604f4ac..7388cde57 100644
--- a/src/org/traccar/protocol/OwnTracksProtocolDecoder.java
+++ b/src/org/traccar/protocol/OwnTracksProtocolDecoder.java
@@ -59,7 +59,7 @@ public class OwnTracksProtocolDecoder extends BaseProtocolDecoder {
new StringReader(request.getContent().toString(StandardCharsets.US_ASCII))).readObject();
if (!root.containsKey("_type") || !root.getString("_type").equals("location")) {
- sendResponse(channel, HttpResponseStatus.BAD_REQUEST);
+ sendResponse(channel, HttpResponseStatus.OK);
return null;
}