Small improvement

This commit is contained in:
M66B 2023-07-03 09:02:26 +02:00
parent bd479cee60
commit 91cbdf3d66
1 changed files with 2 additions and 2 deletions

View File

@ -5853,8 +5853,8 @@ public class MessageHelper {
}
private void flushBuffer() throws IOException {
if (boundary != null && boundaries != 2)
throw new IOException("Content boundaries=" + boundaries);
if (boundary != null && boundaries < 1)
throw new IOException("Signed part missing");
if (buffer.size() > 0)
writeBuffer();
}