Fixed buffering issue with Chrome/Webkit

This commit is contained in:
Michael Jumper
2011-02-18 22:42:12 -08:00
parent 8312d74997
commit 1c8cbd000c

View File

@@ -84,7 +84,11 @@ public abstract class GuacamoleTunnelServlet extends HttpServlet {
try { try {
response.setContentType("text/plain"); // Note that although we are sending text, Webkit browsers will
// buffer 1024 bytes before starting a normal stream if we use
// anything but application/octet-stream.
response.setContentType("application/octet-stream");
Writer out = response.getWriter(); Writer out = response.getWriter();
try { try {