[tor-commits] [exonerator/master] Set content type, or the page doesn't render in Chrome.
karsten at torproject.org
karsten at torproject.org
Mon Feb 8 20:10:41 UTC 2016
commit fe5ff3b983b77d4b627a6298b797655a2e4ee90e
Author: Karsten Loesing <karsten.loesing at gmx.net>
Date: Mon Feb 8 21:05:33 2016 +0100
Set content type, or the page doesn't render in Chrome.
Fixes #18281.
---
src/org/torproject/exonerator/ExoneraTorServlet.java | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/org/torproject/exonerator/ExoneraTorServlet.java b/src/org/torproject/exonerator/ExoneraTorServlet.java
index 66793dd..68d79a3 100644
--- a/src/org/torproject/exonerator/ExoneraTorServlet.java
+++ b/src/org/torproject/exonerator/ExoneraTorServlet.java
@@ -62,6 +62,9 @@ public class ExoneraTorServlet extends HttpServlet {
HttpServletResponse response) throws IOException,
ServletException {
+ /* Set content type, or the page doesn't render in Chrome. */
+ response.setContentType("text/html");
+
/* Start writing response. */
PrintWriter out = response.getWriter();
this.writeHeader(out);
More information about the tor-commits
mailing list