Issue #397 Multipart EOF handling

read to EOF when reading multipart.
This commit is contained in:
Greg Wilkins 2016-03-05 17:50:56 +01:00
parent fb05062f0d
commit d48cfcdb62
1 changed files with 6 additions and 2 deletions

View File

@ -764,11 +764,15 @@ public class MultiPartInputStreamParser
}
finally
{
part.close();
}
}
if (!lastPart)
if (lastPart)
{
while(line!=null)
line=((ReadLineInputStream)_in).readLine();
}
else
throw new IOException("Incomplete parts");
}
catch (Exception e)