From 909ad1db7cd8de735a1282e76c83bdd7372a6e5a Mon Sep 17 00:00:00 2001 From: Ziver Koc Date: Wed, 22 Apr 2015 15:38:04 +0000 Subject: [PATCH] Removed Buffered Input Stream for performance reasons --- src/zutil/net/http/pages/HttpFilePage.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/zutil/net/http/pages/HttpFilePage.java b/src/zutil/net/http/pages/HttpFilePage.java index e4022c3..b660cb7 100644 --- a/src/zutil/net/http/pages/HttpFilePage.java +++ b/src/zutil/net/http/pages/HttpFilePage.java @@ -122,7 +122,8 @@ public class HttpFilePage implements HttpPage{ out.setHeader("Content-Type", getMIMEType(file)); out.flush(); - BufferedInputStream in = new BufferedInputStream(new FileInputStream(file)); + //InputStream in = new BufferedInputStream(new FileInputStream(file)); + InputStream in = new FileInputStream(file); IOUtil.copyStream(in, out); in.close(); }