diff --git a/templates/tunnel.jsp b/templates/tunnel.jsp index d3ed6b7..fc96ca9 100644 --- a/templates/tunnel.jsp +++ b/templates/tunnel.jsp @@ -219,7 +219,7 @@ System.arraycopy(buf.array(), 0, data, 0, bytesRead); out.write(b64en(data)); out.flush(); - buf.clear(); + ((java.nio.Buffer)buf).clear(); bytesRead = socketChannel.read(buf); } response.setHeader("X-STATUS", "OK");