Change back to old implementation
This commit is contained in:
parent
dde04c5a01
commit
c64e47dcd6
|
@ -1158,7 +1158,8 @@ public abstract class NanoHTTPD {
|
||||||
int offset = stripMultipartHeaders(fbuf, bpositions[boundarycount - 2]);
|
int offset = stripMultipartHeaders(fbuf, bpositions[boundarycount - 2]);
|
||||||
String path = saveTmpFile(fbuf, offset, bpositions[boundarycount - 1] - offset - 4);
|
String path = saveTmpFile(fbuf, offset, bpositions[boundarycount - 1] - offset - 4);
|
||||||
files.put(pname, path);
|
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 {
|
do {
|
||||||
mpline = in.readLine();
|
mpline = in.readLine();
|
||||||
} while (mpline != null && !mpline.contains(boundary));
|
} while (mpline != null && !mpline.contains(boundary));
|
||||||
|
|
Loading…
Reference in New Issue