From: Simon Brandhof Date: Fri, 7 Sep 2012 09:34:34 +0000 (+0200) Subject: SONAR-3782 Content type is missing on the URL /batch/* X-Git-Tag: 3.3~318 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cc65bfdfcbd53426ba0accdb72946bde43f2a4f9;p=sonarqube.git SONAR-3782 Content type is missing on the URL /batch/* --- diff --git a/sonar-server/src/main/java/org/sonar/server/plugins/BatchResourcesServlet.java b/sonar-server/src/main/java/org/sonar/server/plugins/BatchResourcesServlet.java index c3c4d65d06b..1751c240792 100644 --- a/sonar-server/src/main/java/org/sonar/server/plugins/BatchResourcesServlet.java +++ b/sonar-server/src/main/java/org/sonar/server/plugins/BatchResourcesServlet.java @@ -52,7 +52,7 @@ public class BatchResourcesServlet extends HttpServlet { if (StringUtils.isEmpty(resource)) { PrintWriter writer = null; try { - response.setContentType("text/html"); + response.setContentType("text/plain"); writer = response.getWriter(); writer.print(StringUtils.join(getLibs(), ',')); } catch (IOException e) { @@ -62,6 +62,7 @@ public class BatchResourcesServlet extends HttpServlet { IOUtils.closeQuietly(writer); } } else { + response.setContentType("application/java-archive"); InputStream in = null; OutputStream out = null; try {