aboutsummaryrefslogtreecommitdiff
path: root/src/org
diff options
context:
space:
mode:
authornativbarak <nativ@globekeeper.com>2018-02-04 17:21:51 +0200
committernativbarak <nativ@globekeeper.com>2018-02-04 17:21:51 +0200
commitfc3106e742beba6aeaebb66083380c6b9e1082d0 (patch)
tree4028a0b6dba84f5430a7d1e15e2b9f53c85df3bc /src/org
parentdc092138fc69bb5f8f137be435309d3945c49b13 (diff)
downloadtraccar-server-fc3106e742beba6aeaebb66083380c6b9e1082d0.tar.gz
traccar-server-fc3106e742beba6aeaebb66083380c6b9e1082d0.tar.bz2
traccar-server-fc3106e742beba6aeaebb66083380c6b9e1082d0.zip
Code refactoring
Diffstat (limited to 'src/org')
-rw-r--r--src/org/traccar/WebDataHandler.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/org/traccar/WebDataHandler.java b/src/org/traccar/WebDataHandler.java
index 10fac2e41..a4c95aa3c 100644
--- a/src/org/traccar/WebDataHandler.java
+++ b/src/org/traccar/WebDataHandler.java
@@ -121,7 +121,7 @@ public class WebDataHandler extends BaseDataHandler {
@Override
protected Position handlePosition(Position position) {
- if(json){
+ if (json) {
AsyncHttpClient.BoundRequestBuilder requestBuilder = Context.getAsyncHttpClient().preparePost(url);
requestBuilder.setBodyEncoding(StandardCharsets.UTF_8.name());
@@ -129,7 +129,8 @@ public class WebDataHandler extends BaseDataHandler {
setContent(position, requestBuilder);
requestBuilder.execute();
- }else {
+
+ } else {
Context.getAsyncHttpClient().prepareGet(formatRequest(position)).execute();
}
return position;