aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/notification
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2016-10-03 20:04:35 +0500
committerAbyss777 <abyss@fox5.ru>2016-10-03 20:04:35 +0500
commit689ef4aefb4f2d89049eea337c375aca6e601eba (patch)
tree15ae68c9c2915657a8ade6b2ef521b18e30a969c /src/org/traccar/notification
parent1380c1e4453f32f8963ea41f375b2d44c2a6a8fe (diff)
downloadtrackermap-server-689ef4aefb4f2d89049eea337c375aca6e601eba.tar.gz
trackermap-server-689ef4aefb4f2d89049eea337c375aca6e601eba.tar.bz2
trackermap-server-689ef4aefb4f2d89049eea337c375aca6e601eba.zip
Changed Content-Type for easy access to data from PHP and others
Diffstat (limited to 'src/org/traccar/notification')
-rw-r--r--src/org/traccar/notification/EventForwarder.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/notification/EventForwarder.java b/src/org/traccar/notification/EventForwarder.java
index 3bd7e5cf5..6a1dc32a4 100644
--- a/src/org/traccar/notification/EventForwarder.java
+++ b/src/org/traccar/notification/EventForwarder.java
@@ -50,7 +50,7 @@ public final class EventForwarder {
BoundRequestBuilder requestBuilder = Context.getAsyncHttpClient().preparePost(url);
- requestBuilder.addHeader("Content-Type", "application/json; charset=utf-8");
+ requestBuilder.addHeader("Content-Type", "application/x-www-form-urlencoded; charset=utf-8");
requestBuilder.addHeader("User-Agent", USER_AGENT);
if (!header.equals("")) {
String[] headerLines = header.split("\\r?\\n");