From f740328ee029fa5cab1d83f8849a04c58f6f0be2 Mon Sep 17 00:00:00 2001 From: Jan-Piet Mens Date: Fri, 16 Jun 2017 12:36:14 +0200 Subject: Correctly ignore OwnTracks publishes of type != location --- src/org/traccar/protocol/OwnTracksProtocolDecoder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org/traccar/protocol') 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; } -- cgit v1.2.3