aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;