commit | 759dd7510c6d2d76c9ba742a9dd55849f838ac05 | [log] [tgz] |
---|---|---|
author | Luca Milanesio <luca.milanesio@gmail.com> | Thu Dec 06 20:47:49 2012 +0000 |
committer | Luca Milanesio <luca.milanesio@gmail.com> | Thu Dec 06 20:48:00 2012 +0000 |
tree | c9d3f028b02dcf04c19df8a10ccb8b7595feeeea | |
parent | f51b9f889867c8d08315ebcb5e0d46e606e6ba7b [diff] |
Allows the browser to understand the correct content-type. Change-Id: Ie06bbe0b594889ecf1d19156d071c38198fc52e3 Signed-off-by: Luca Milanesio <luca.milanesio@gmail.com>
diff --git a/src/main/java/com/googlesource/gerrit/plugins/branchnetwork/canvas/GitGraphServlet.java b/src/main/java/com/googlesource/gerrit/plugins/branchnetwork/canvas/GitGraphServlet.java index 52b34ad..495352e 100644 --- a/src/main/java/com/googlesource/gerrit/plugins/branchnetwork/canvas/GitGraphServlet.java +++ b/src/main/java/com/googlesource/gerrit/plugins/branchnetwork/canvas/GitGraphServlet.java
@@ -74,6 +74,7 @@ @Override protected void doGet(HttpServletRequest req, HttpServletResponse resp) throws ServletException, IOException { + resp.setContentType("text/html;charset=UTF-8"); PrintWriter out = resp.getWriter(); try {