fix failing tests

Signed-off-by: Lachlan Roberts <lachlan@webtide.com>
This commit is contained in:
Lachlan Roberts 2024-06-11 23:53:53 +10:00
parent 9862e2e365
commit 362b582c50
1 changed files with 6 additions and 4 deletions

View File

@ -78,8 +78,9 @@ public class MultiPartFormDataHandlerTest
public boolean handle(Request request, Response response, Callback callback)
{
String boundary = MultiPart.extractBoundary(request.getHeaders().get(HttpHeader.CONTENT_TYPE));
new MultiPartFormData.Parser(boundary)
.parse(request)
MultiPartFormData.Parser parser = new MultiPartFormData.Parser(boundary);
parser.setMaxMemoryFileSize(-1);
parser.parse(request)
.whenComplete((parts, failure) ->
{
if (parts != null)
@ -128,8 +129,9 @@ public class MultiPartFormDataHandlerTest
{
String boundary = MultiPart.extractBoundary(request.getHeaders().get(HttpHeader.CONTENT_TYPE));
new MultiPartFormData.Parser(boundary)
.parse(request)
MultiPartFormData.Parser parser = new MultiPartFormData.Parser(boundary);
parser.setMaxMemoryFileSize(-1);
parser.parse(request)
.whenComplete((parts, failure) ->
{
if (parts != null)