diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-10-04 09:37:53 +1300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-04 09:37:53 +1300 |
commit | da251c52ba6a001e85574f688455a698a6998855 (patch) | |
tree | 15ae68c9c2915657a8ade6b2ef521b18e30a969c /src/org/traccar/notification/EventForwarder.java | |
parent | 1380c1e4453f32f8963ea41f375b2d44c2a6a8fe (diff) | |
parent | 689ef4aefb4f2d89049eea337c375aca6e601eba (diff) | |
download | trackermap-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/notification/EventForwarder.java')
-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"); |