From cc65bfdfcbd53426ba0accdb72946bde43f2a4f9 Mon Sep 17 00:00:00 2001 From: Simon Brandhof Date: Fri, 7 Sep 2012 11:34:34 +0200 Subject: [PATCH] SONAR-3782 Content type is missing on the URL /batch/* --- .../java/org/sonar/server/plugins/BatchResourcesServlet.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 { -- 2.39.5