diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2022-01-17 23:48:25 -0800 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2022-01-17 23:48:25 -0800 |
commit | a872ad3dc4d9b9601790e324c7799caf43637525 (patch) | |
tree | f4955503b72c942190291f00a9c37cc740cf1aae /src/main/java | |
parent | 27ff64d6ab93dc07dfec1ca155a559e07c9d0b93 (diff) | |
download | trackermap-server-a872ad3dc4d9b9601790e324c7799caf43637525.tar.gz trackermap-server-a872ad3dc4d9b9601790e324c7799caf43637525.tar.bz2 trackermap-server-a872ad3dc4d9b9601790e324c7799caf43637525.zip |
Fix request method
Diffstat (limited to 'src/main/java')
-rw-r--r-- | src/main/java/org/traccar/protocol/OrbcommProtocolPoller.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/protocol/OrbcommProtocolPoller.java b/src/main/java/org/traccar/protocol/OrbcommProtocolPoller.java index 9465f63a7..bf1093654 100644 --- a/src/main/java/org/traccar/protocol/OrbcommProtocolPoller.java +++ b/src/main/java/org/traccar/protocol/OrbcommProtocolPoller.java @@ -65,7 +65,7 @@ public class OrbcommProtocolPoller extends BaseProtocolPoller { encoder.addParam("start_utc", dateFormat.format(startTime)); HttpRequest request = new DefaultFullHttpRequest( - HttpVersion.HTTP_1_1, HttpMethod.POST, encoder.toString(), Unpooled.buffer()); + HttpVersion.HTTP_1_1, HttpMethod.GET, encoder.toString(), Unpooled.buffer()); request.headers().add(HttpHeaderNames.HOST, host); request.headers().add(HttpHeaderNames.CONTENT_LENGTH, 0); channel.writeAndFlush(request); |