diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2017-06-16 23:55:17 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-16 23:55:17 +1200 |
commit | afacdd300924af3a0362a14c02db2212f8da147a (patch) | |
tree | 21be0e589b7cdb909c53e79a8c2fc7c877abda43 /src/org | |
parent | fe4ea97dabc55c4585d8b32bd4dae32cd255add3 (diff) | |
parent | f740328ee029fa5cab1d83f8849a04c58f6f0be2 (diff) | |
download | trackermap-server-afacdd300924af3a0362a14c02db2212f8da147a.tar.gz trackermap-server-afacdd300924af3a0362a14c02db2212f8da147a.tar.bz2 trackermap-server-afacdd300924af3a0362a14c02db2212f8da147a.zip |
Merge pull request #3260 from jpmens/owntracks3
Correctly ignore OwnTracks publishes of type != location
Diffstat (limited to 'src/org')
-rw-r--r-- | src/org/traccar/protocol/OwnTracksProtocolDecoder.java | 2 |
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; } |