diff options
author | Simon Brandhof <simon.brandhof@gmail.com> | 2012-09-07 11:34:34 +0200 |
---|---|---|
committer | Simon Brandhof <simon.brandhof@gmail.com> | 2012-09-07 11:34:34 +0200 |
commit | cc65bfdfcbd53426ba0accdb72946bde43f2a4f9 (patch) | |
tree | 61901fa418aef7af28758a13208a729069a849a7 | |
parent | c4170582180ef8dc3e2d1d0e889c9db7dd85e80a (diff) | |
download | sonarqube-cc65bfdfcbd53426ba0accdb72946bde43f2a4f9.tar.gz sonarqube-cc65bfdfcbd53426ba0accdb72946bde43f2a4f9.zip |
SONAR-3782 Content type is missing on the URL /batch/*
-rw-r--r-- | sonar-server/src/main/java/org/sonar/server/plugins/BatchResourcesServlet.java | 3 |
1 files changed, 2 insertions, 1 deletions
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 { |