From c64e47dcd686e9c67ae980c41317481e44fdd35b Mon Sep 17 00:00:00 2001 From: Martin Fietz Date: Sun, 21 Jan 2018 19:59:09 +0100 Subject: Change back to old implementation --- .../java/de/test/antennapod/util/service/download/NanoHTTPD.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'app') diff --git a/app/src/androidTest/java/de/test/antennapod/util/service/download/NanoHTTPD.java b/app/src/androidTest/java/de/test/antennapod/util/service/download/NanoHTTPD.java index 3d4c96467..61ff65809 100644 --- a/app/src/androidTest/java/de/test/antennapod/util/service/download/NanoHTTPD.java +++ b/app/src/androidTest/java/de/test/antennapod/util/service/download/NanoHTTPD.java @@ -1158,7 +1158,8 @@ public abstract class NanoHTTPD { int offset = stripMultipartHeaders(fbuf, bpositions[boundarycount - 2]); String path = saveTmpFile(fbuf, offset, bpositions[boundarycount - 1] - offset - 4); files.put(pname, path); - value = disposition.get("filename").substring(1, value.length() - 1); + value = disposition.get("filename"); + value = value.substring(1, value.length() - 1); do { mpline = in.readLine(); } while (mpline != null && !mpline.contains(boundary)); -- cgit v1.2.3