diff --git a/jetty-core/jetty-http/src/test/java/org/eclipse/jetty/http/MultiPartCaptureTest.java b/jetty-core/jetty-http/src/test/java/org/eclipse/jetty/http/MultiPartCaptureTest.java index 7469cb2af51..822c5361fdd 100644 --- a/jetty-core/jetty-http/src/test/java/org/eclipse/jetty/http/MultiPartCaptureTest.java +++ b/jetty-core/jetty-http/src/test/java/org/eclipse/jetty/http/MultiPartCaptureTest.java @@ -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);