Skip to content

Commit

Permalink
fixed content type on javadoc servlet
Browse files Browse the repository at this point in the history
  • Loading branch information
jstrachan committed Mar 27, 2013
1 parent f0ff390 commit 2556793
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions hawtio-web/src/main/java/io/hawt/web/JavaDocServlet.java
Expand Up @@ -70,6 +70,9 @@ protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws Se
try {
Object answer = mbeanServer.invoke(objectName, "getJavaDoc", arguments, argumentTypes);
if (answer instanceof String) {
if (!pathInfo.endsWith(".css")) {
resp.setContentType("text/html;charset=utf-8");
}
resp.getWriter().println(answer);
}
} catch (Exception e) {
Expand Down

0 comments on commit 2556793

Please sign in to comment.