diff options
author | Abyss777 <abyss@fox5.ru> | 2016-10-03 20:04:35 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-10-03 20:04:35 +0500 |
commit | 689ef4aefb4f2d89049eea337c375aca6e601eba (patch) | |
tree | 15ae68c9c2915657a8ade6b2ef521b18e30a969c | |
parent | 1380c1e4453f32f8963ea41f375b2d44c2a6a8fe (diff) | |
download | trackermap-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
-rw-r--r-- | src/org/traccar/notification/EventForwarder.java | 2 |
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"); |