From 689ef4aefb4f2d89049eea337c375aca6e601eba Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Mon, 3 Oct 2016 20:04:35 +0500 Subject: Changed Content-Type for easy access to data from PHP and others --- src/org/traccar/notification/EventForwarder.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/org/traccar/notification') 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"); -- cgit v1.2.3