aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-10-04 09:37:53 +1300
committerGitHub <noreply@github.com>2016-10-04 09:37:53 +1300
commitda251c52ba6a001e85574f688455a698a6998855 (patch)
tree15ae68c9c2915657a8ade6b2ef521b18e30a969c /src/org/traccar
parent1380c1e4453f32f8963ea41f375b2d44c2a6a8fe (diff)
parent689ef4aefb4f2d89049eea337c375aca6e601eba (diff)
downloadtrackermap-server-da251c52ba6a001e85574f688455a698a6998855.tar.gz
trackermap-server-da251c52ba6a001e85574f688455a698a6998855.tar.bz2
trackermap-server-da251c52ba6a001e85574f688455a698a6998855.zip
Merge pull request #2399 from Abyss777/fix2395
Changed Content-Type for easy access to data from PHP and others
Diffstat (limited to 'src/org/traccar')
-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");