diff options
author | Martin Fietz <martin.fietz@gmail.com> | 2018-01-21 19:59:09 +0100 |
---|---|---|
committer | Martin Fietz <martin.fietz@gmail.com> | 2018-01-21 19:59:09 +0100 |
commit | c64e47dcd686e9c67ae980c41317481e44fdd35b (patch) | |
tree | b236589240675373f42095feccbea6364d5a032f /app/src | |
parent | dde04c5a01980c324027a66308768375f545fa9f (diff) | |
download | AntennaPod-c64e47dcd686e9c67ae980c41317481e44fdd35b.zip |
Change back to old implementation
Diffstat (limited to 'app/src')
-rw-r--r-- | app/src/androidTest/java/de/test/antennapod/util/service/download/NanoHTTPD.java | 3 |
1 files changed, 2 insertions, 1 deletions
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)); |