Commit 02d3a9a1 authored by Michael Ritter's avatar Michael Ritter

Set content type for json/csv requests

parent c7f90b01
......@@ -212,8 +212,10 @@ public class StatusServlet extends EntityManagerServlet {
request.setAttribute(PAGE_NUMBER, pb);
request.setAttribute("groups", GroupSummaryContext.summaries);
if (hasJson(request)) {
response.setContentType("application/json");
dispatcher = request.getRequestDispatcher("status-json.jsp");
} else if (hasCsv(request)) {
response.setContentType("text/csv");
dispatcher = request.getRequestDispatcher("status-csv.jsp");
} else {
dispatcher = request.getRequestDispatcher("status.jsp");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment