PR #11906 - fix to MultiPartCaptureTest

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
Lachlan Roberts 2024-06-17 13:49:58 +10:00
parent 3dcf266cf8
commit 6661eea1ee
1 changed files with 1 additions and 0 deletions

View File

@ -60,6 +60,7 @@ public class MultiPartCaptureTest
MultiPartFormData.Parser parser = new MultiPartFormData.Parser(boundary);
parser.setUseFilesForPartsWithoutFileName(false);
parser.setFilesDirectory(tempDir);
parser.setUseFilesForPartsWithoutFileName(true);
ByteBufferContentSource contentSource = new ByteBufferContentSource(formRequest.asByteBuffer());
MultiPartFormData.Parts parts = parser.parse(contentSource).get();
formExpectations.assertParts(mapActualResults(parts), defaultCharset);