This commit is contained in:
Redkale
2016-09-14 11:22:25 +08:00
parent 0a2a9f0e80
commit f21cb2c233

View File

@@ -260,7 +260,6 @@ public class HttpResourceServlet extends HttpServlet {
while ((pos = in.read(bytes)) != -1) {
out.write(bytes, 0, pos);
}
in.close();
byte[] bs = out.toByteArray();
ByteBuffer buf = ByteBuffer.allocateDirect(bs.length);
buf.put(bs);