aboutsummaryrefslogtreecommitdiff
path: root/core/src/main/java
diff options
context:
space:
mode:
authorJarno Elonen <elonen@iki.fi>2015-05-25 02:29:14 +0300
committerJarno Elonen <elonen@iki.fi>2015-05-25 02:29:14 +0300
commitf1409a7efe92b6ad022d4b6accc01e7b4fa4a95b (patch)
treeb683c33214ac54ae90a8d689ba9f89ac65e11ea8 /core/src/main/java
parent3cbc1769b317f45ad257f33bd648ac97b595f84b (diff)
downloadnanohttpd-f1409a7efe92b6ad022d4b6accc01e7b4fa4a95b.tar.gz
Actually remove the extra inputstreams
Diffstat (limited to 'core/src/main/java')
-rw-r--r--core/src/main/java/fi/iki/elonen/NanoHTTPD.java5
1 files changed, 0 insertions, 5 deletions
diff --git a/core/src/main/java/fi/iki/elonen/NanoHTTPD.java b/core/src/main/java/fi/iki/elonen/NanoHTTPD.java
index bd3fa2b..53613e9 100644
--- a/core/src/main/java/fi/iki/elonen/NanoHTTPD.java
+++ b/core/src/main/java/fi/iki/elonen/NanoHTTPD.java
@@ -906,10 +906,6 @@ public abstract class NanoHTTPD {
ByteBuffer fbuf = randomAccessFile.getChannel().map(FileChannel.MapMode.READ_ONLY, 0, randomAccessFile.length());
randomAccessFile.seek(0);
- // Create a BufferedReader for easily reading it as string.
- InputStream bin = new FileInputStream(randomAccessFile.getFD());
- in = new BufferedReader(new InputStreamReader(bin));
-
// If the method is POST, there may be parameters
// in data section, too, read it:
if (Method.POST.equals(this.method)) {
@@ -958,7 +954,6 @@ public abstract class NanoHTTPD {
}
} finally {
safeClose(randomAccessFile);
- safeClose(in);
}
}