This commit is contained in:
@@ -260,7 +260,6 @@ public class HttpResourceServlet extends HttpServlet {
|
|||||||
while ((pos = in.read(bytes)) != -1) {
|
while ((pos = in.read(bytes)) != -1) {
|
||||||
out.write(bytes, 0, pos);
|
out.write(bytes, 0, pos);
|
||||||
}
|
}
|
||||||
in.close();
|
|
||||||
byte[] bs = out.toByteArray();
|
byte[] bs = out.toByteArray();
|
||||||
ByteBuffer buf = ByteBuffer.allocateDirect(bs.length);
|
ByteBuffer buf = ByteBuffer.allocateDirect(bs.length);
|
||||||
buf.put(bs);
|
buf.put(bs);
|
||||||
|
|||||||
Reference in New Issue
Block a user