fix header

This commit is contained in:
Sola
2015-12-15 21:34:49 +08:00
parent 1878bdf296
commit eb24ea4e72
7 changed files with 7 additions and 7 deletions

View File

@@ -42,7 +42,7 @@ public class TicketQuery extends HttpServlet {
protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
request.setCharacterEncoding("utf-8");
response.setCharacterEncoding("utf-8");
response.addHeader("Content-type", "text/json;charset=utf-8");
response.addHeader("Content-type", "application/json;charset=utf-8");
PrintWriter out = response.getWriter();
String json = gson.toJson(query(request));
out.println(ParseUtil.parseJsonP(request, json));