]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3782 Content type is missing on the URL /batch/*
authorSimon Brandhof <simon.brandhof@gmail.com>
Fri, 7 Sep 2012 09:34:34 +0000 (11:34 +0200)
committerSimon Brandhof <simon.brandhof@gmail.com>
Fri, 7 Sep 2012 09:34:34 +0000 (11:34 +0200)
sonar-server/src/main/java/org/sonar/server/plugins/BatchResourcesServlet.java

index c3c4d65d06b9943e7e8571554e06338482bbb0e1..1751c24079252cff1232f723aa89536cadea4f72 100644 (file)
@@ -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 {