Change back to old implementation

This commit is contained in:
Martin Fietz 2018-01-21 19:59:09 +01:00
parent dde04c5a01
commit c64e47dcd6
1 changed files with 2 additions and 1 deletions

View File

@ -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));