diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2015-07-12 11:56:33 +1200 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2015-07-12 11:56:33 +1200 |
commit | 2badcd16f7ae0ce46f7c0cd241c635493d7e6508 (patch) | |
tree | 075b13ee9586bb99b2a51d1e169d65d4d14bbb54 | |
parent | ecbbcc01f89acc85d02cfbd1201253411a4604e4 (diff) | |
download | traccar-server-2badcd16f7ae0ce46f7c0cd241c635493d7e6508.tar.gz traccar-server-2badcd16f7ae0ce46f7c0cd241c635493d7e6508.tar.bz2 traccar-server-2badcd16f7ae0ce46f7c0cd241c635493d7e6508.zip |
Set correct JSON content type (fix #1298)
-rw-r--r-- | src/org/traccar/http/BaseServlet.java | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/org/traccar/http/BaseServlet.java b/src/org/traccar/http/BaseServlet.java index 89eefc11c..394e4d317 100644 --- a/src/org/traccar/http/BaseServlet.java +++ b/src/org/traccar/http/BaseServlet.java @@ -38,6 +38,8 @@ public abstract class BaseServlet extends HttpServlet { command = ""; } try { + resp.setContentType("application/json"); + resp.setCharacterEncoding("UTF-8"); if (!handle(command, req, resp)) { resp.sendError(HttpServletResponse.SC_BAD_REQUEST); } |