bug5127: use application/json as the content type for file upload progress servlet

This commit is contained in:
Axel Uhl
2023-01-30 17:06:59 +01:00
parent c9679218d4
commit bbdb316f23
@@ -23,7 +23,7 @@ public class ProgressServlet extends HttpServlet {
}
public void doPost(HttpServletRequest request, HttpServletResponse response) throws IOException {
response.setContentType("text/html");
response.setContentType("application/json");
final HttpSession session = request.getSession(true);
if (session == null) {
logger.warning("Sorry, session is null"); // just to be safe